ProtoProxy: ListenPort and ConnectPort are now settable on commandline, the defaults have switched (listens on 25564, connects to localhost:25565)
git-svn-id: http://mc-server.googlecode.com/svn/trunk@992 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
@@ -46,6 +46,9 @@ int cServer::Init(short a_ListenPort, short a_ConnectPort)
|
||||
local.sin_port = htons(a_ListenPort);
|
||||
bind(m_ListenSocket, (sockaddr *)&local, sizeof(local));
|
||||
listen(m_ListenSocket, 1);
|
||||
|
||||
printf("Listening on port %d, connecting to localhost:%d\n", a_ListenPort, a_ConnectPort);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user