1
0

ProtoProxy: Added logging for the window contents, item's metadata is saved to a separate file

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1537 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
madmaxoft@gmail.com
2013-06-02 09:56:04 +00:00
parent 7c0be7520a
commit e9042ac098
3 changed files with 38 additions and 15 deletions

View File

@@ -58,7 +58,7 @@ int cServer::Init(short a_ListenPort, short a_ConnectPort)
void cServer::Run(void)
{
printf("Server running\n");
printf("Server running.\n");
while (true)
{
sockaddr_in Addr;
@@ -67,11 +67,13 @@ void cServer::Run(void)
SOCKET client = accept(m_ListenSocket, (sockaddr *)&Addr, &AddrSize);
if (client == INVALID_SOCKET)
{
printf("accept returned an error: %d; bailing out", WSAGetLastError());
printf("accept returned an error: %d; bailing out.\n", WSAGetLastError());
return;
}
printf("Client connected, proxying...\n");
cConnection Connection(client, *this);
Connection.Run();
printf("Client disconnected. Ready for another connection.\n");
}
}