From 5797f99defa2f8afb0641d5f6ec0cc7557e069ee Mon Sep 17 00:00:00 2001 From: Creaprog Date: Sun, 15 Feb 2015 14:29:11 +0100 Subject: Fixed Server.cpp Performance improvement. --- Tools/ProtoProxy/Server.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Tools/ProtoProxy/Server.cpp b/Tools/ProtoProxy/Server.cpp index 9545af852..77d1af827 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"); + puts("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"); + puts("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"); + puts("Client connected, proxying..."); cConnection Connection(client, *this); Connection.Run(); - printf("Client disconnected. Ready for another connection.\n"); + puts("Client disconnected. Ready for another connection."); } } -- cgit v1.2.3 From a063da939868abfb9aa4169ca714bfadab708c48 Mon Sep 17 00:00:00 2001 From: Creaprog Date: Sun, 15 Feb 2015 17:28:19 +0100 Subject: Fixed Server.cpp --- Tools/ProtoProxy/Server.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Tools/ProtoProxy/Server.cpp b/Tools/ProtoProxy/Server.cpp index 77d1af827..7d890124d 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 - puts("Generating protocol encryption keypair..."); + LOG("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) { - puts("Server running."); + LOG("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; } - puts("Client connected, proxying..."); + LOG("Client connected, proxying..."); cConnection Connection(client, *this); Connection.Run(); - puts("Client disconnected. Ready for another connection."); + LOG("Client disconnected. Ready for another connection."); } } -- cgit v1.2.3 From cbd2a0913511ad4130c482055ffb123085f505be Mon Sep 17 00:00:00 2001 From: Creaprog Date: Sun, 15 Feb 2015 18:28:33 +0100 Subject: Fixed Server.cpp --- Tools/ProtoProxy/Server.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Tools/ProtoProxy/Server.cpp b/Tools/ProtoProxy/Server.cpp index 7d890124d..2932b37e3 100644 --- a/Tools/ProtoProxy/Server.cpp +++ b/Tools/ProtoProxy/Server.cpp @@ -6,6 +6,7 @@ #include "Globals.h" #include "Server.h" #include "Connection.h" +#include "Logger.h" -- cgit v1.2.3 From 6f9c62172bb1f6679f733f05e10e712ca7bc3c47 Mon Sep 17 00:00:00 2001 From: Creaprog Date: Sun, 15 Feb 2015 20:39:53 +0100 Subject: Fixed Server.cpp --- Tools/ProtoProxy/Server.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Tools/ProtoProxy/Server.cpp b/Tools/ProtoProxy/Server.cpp index 2932b37e3..e27c86e10 100644 --- a/Tools/ProtoProxy/Server.cpp +++ b/Tools/ProtoProxy/Server.cpp @@ -6,7 +6,6 @@ #include "Globals.h" #include "Server.h" #include "Connection.h" -#include "Logger.h" @@ -34,7 +33,7 @@ int cServer::Init(short a_ListenPort, short a_ConnectPort) } #endif // _WIN32 - LOG("Generating protocol encryption keypair..."); + LOGINFO("Generating protocol encryption keypair..."); m_PrivateKey.Generate(); m_PublicKeyDER = m_PrivateKey.GetPubKeyDER(); @@ -98,10 +97,10 @@ void cServer::Run(void) printf("accept returned an error: %d; bailing out.\n", SocketError); return; } - LOG("Client connected, proxying..."); + LOGINFO("Client connected, proxying..."); cConnection Connection(client, *this); Connection.Run(); - LOG("Client disconnected. Ready for another connection."); + LOGINFO("Client disconnected. Ready for another connection."); } } -- cgit v1.2.3 From 9fab1d85bc5508a941a1cb80e61e7a23b29c51ea Mon Sep 17 00:00:00 2001 From: Creaprog Date: Mon, 16 Feb 2015 09:27:52 +0100 Subject: Fixed Server.cpp --- Tools/ProtoProxy/Server.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools/ProtoProxy/Server.cpp b/Tools/ProtoProxy/Server.cpp index e27c86e10..5bba98057 100644 --- a/Tools/ProtoProxy/Server.cpp +++ b/Tools/ProtoProxy/Server.cpp @@ -85,7 +85,7 @@ int cServer::Init(short a_ListenPort, short a_ConnectPort) void cServer::Run(void) { - LOG("Server running."); + LOGINFO("Server running."); while (true) { sockaddr_in Addr; -- cgit v1.2.3