summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Harkness <me@bearbin.net>2015-02-16 09:38:22 +0100
committerAlexander Harkness <me@bearbin.net>2015-02-16 09:38:22 +0100
commit6bf9b644422ed56354c81729f97f36c9a330b9db (patch)
treef2ae3d3babab97126d91c0e2218e522710756d5d
parentMerge pull request #1740 from Creaprog/patch-1 (diff)
parentFixed Server.cpp (diff)
downloadcuberite-6bf9b644422ed56354c81729f97f36c9a330b9db.tar
cuberite-6bf9b644422ed56354c81729f97f36c9a330b9db.tar.gz
cuberite-6bf9b644422ed56354c81729f97f36c9a330b9db.tar.bz2
cuberite-6bf9b644422ed56354c81729f97f36c9a330b9db.tar.lz
cuberite-6bf9b644422ed56354c81729f97f36c9a330b9db.tar.xz
cuberite-6bf9b644422ed56354c81729f97f36c9a330b9db.tar.zst
cuberite-6bf9b644422ed56354c81729f97f36c9a330b9db.zip
-rw-r--r--Tools/ProtoProxy/Server.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Tools/ProtoProxy/Server.cpp b/Tools/ProtoProxy/Server.cpp
index 9545af852..5bba98057 100644
--- a/Tools/ProtoProxy/Server.cpp
+++ b/Tools/ProtoProxy/Server.cpp
@@ -33,7 +33,7 @@ int cServer::Init(short a_ListenPort, short a_ConnectPort)
}
#endif // _WIN32
- printf("Generating protocol encryption keypair...\n");
+ LOGINFO("Generating protocol encryption keypair...");
m_PrivateKey.Generate();
m_PublicKeyDER = m_PrivateKey.GetPubKeyDER();
@@ -85,7 +85,7 @@ int cServer::Init(short a_ListenPort, short a_ConnectPort)
void cServer::Run(void)
{
- printf("Server running.\n");
+ LOGINFO("Server running.");
while (true)
{
sockaddr_in Addr;
@@ -97,10 +97,10 @@ void cServer::Run(void)
printf("accept returned an error: %d; bailing out.\n", SocketError);
return;
}
- printf("Client connected, proxying...\n");
+ LOGINFO("Client connected, proxying...");
cConnection Connection(client, *this);
Connection.Run();
- printf("Client disconnected. Ready for another connection.\n");
+ LOGINFO("Client disconnected. Ready for another connection.");
}
}