From a337764e61dc726f9be7dc7dd0fe36c321b9e055 Mon Sep 17 00:00:00 2001 From: Denes Matetelki Date: Fri, 5 Jul 2013 19:41:40 +0200 Subject: [PATCH] trivial fixes after changed API --- other/tcpclient_main.cpp | 3 ++- other/tcpserver_main.cpp | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/other/tcpclient_main.cpp b/other/tcpclient_main.cpp index 46e0227..5f44188 100644 --- a/other/tcpclient_main.cpp +++ b/other/tcpclient_main.cpp @@ -13,6 +13,7 @@ #include #include // nanosleep +#include // sleep @@ -78,7 +79,7 @@ int main(int argc, char* argv[] ) SimpleMessage msg(&finished); - TcpConnection conn(argv[1], StrToT(argv[2]), &msg); + TcpConnection conn(argv[1], argv[2], &msg); SocketClient socketClient(&conn); if ( !socketClient.connect() ) { diff --git a/other/tcpserver_main.cpp b/other/tcpserver_main.cpp index 3708d5e..4744ee8 100644 --- a/other/tcpserver_main.cpp +++ b/other/tcpserver_main.cpp @@ -12,6 +12,8 @@ #include #include +#include // sleep + class EchoMessage : public Message { public: @@ -79,7 +81,7 @@ int main(int argc, char* argv[] ) // Logger::setNoPrefix(); EchoMessage msg; - TcpConnection conn(argv[1], StrToT(argv[2]), &msg); + TcpConnection conn(argv[1], argv[2], &msg); SocketServer socketServer(&conn); if ( !socketServer.start() ) {