Skip to content

Commit

Permalink
Merge pull request #1741 from Creaprog/patch-2
Browse files Browse the repository at this point in the history
Fixed Server.cpp
  • Loading branch information
bearbin committed Feb 16, 2015
2 parents b7e761e + 9fab1d8 commit 6bf9b64
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Tools/ProtoProxy/Server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down Expand Up @@ -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;
Expand All @@ -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.");
}
}

Expand Down

0 comments on commit 6bf9b64

Please sign in to comment.