summaryrefslogtreecommitdiffstats
path: root/ProtoProxy/Server.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-06-02 11:56:04 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-06-02 11:56:04 +0200
commite9042ac098d49611b37fdf6722ad3af1554ec304 (patch)
treeec1d32e3e7f75f912ab2b0ae88aab66d4cd55948 /ProtoProxy/Server.cpp
parentcItem constructor changed to create single-piece items when not given count (diff)
downloadcuberite-e9042ac098d49611b37fdf6722ad3af1554ec304.tar
cuberite-e9042ac098d49611b37fdf6722ad3af1554ec304.tar.gz
cuberite-e9042ac098d49611b37fdf6722ad3af1554ec304.tar.bz2
cuberite-e9042ac098d49611b37fdf6722ad3af1554ec304.tar.lz
cuberite-e9042ac098d49611b37fdf6722ad3af1554ec304.tar.xz
cuberite-e9042ac098d49611b37fdf6722ad3af1554ec304.tar.zst
cuberite-e9042ac098d49611b37fdf6722ad3af1554ec304.zip
Diffstat (limited to '')
-rw-r--r--ProtoProxy/Server.cpp6
1 files changed, 4 insertions, 2 deletions
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");
}
}