From e9042ac098d49611b37fdf6722ad3af1554ec304 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Sun, 2 Jun 2013 09:56:04 +0000 Subject: 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 --- ProtoProxy/Server.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'ProtoProxy/Server.cpp') diff --git a/ProtoProxy/Server.cpp b/ProtoProxy/Server.cpp index 2b715b5c1..3d4913355 100644 --- a/ProtoProxy/Server.cpp +++ b/ProtoProxy/Server.cpp @@ -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"); } } -- cgit v1.2.3