@ -13,6 +13,7 @@
#include <string>
#include <time.h> // nanosleep
#include <unistd.h> // sleep
@ -78,7 +79,7 @@ int main(int argc, char* argv[] )
SimpleMessage msg(&finished);
TcpConnection conn(argv[1], StrToT<int>(argv[2]), &msg);
TcpConnection conn(argv[1], argv[2], &msg);
SocketClient socketClient(&conn);
if ( !socketClient.connect() ) {
@ -12,6 +12,8 @@
#include <iostream>
class EchoMessage : public Message
{
public:
@ -79,7 +81,7 @@ int main(int argc, char* argv[] )
// Logger::setNoPrefix();
EchoMessage msg;
SocketServer socketServer(&conn);
if ( !socketServer.start() ) {