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() ) {