trivial fixes after changed API

master
Denes Matetelki 12 years ago
parent d2a2dfda35
commit a337764e61

@ -13,6 +13,7 @@
#include <string> #include <string>
#include <time.h> // nanosleep #include <time.h> // nanosleep
#include <unistd.h> // sleep
@ -78,7 +79,7 @@ int main(int argc, char* argv[] )
SimpleMessage msg(&finished); SimpleMessage msg(&finished);
TcpConnection conn(argv[1], StrToT<int>(argv[2]), &msg); TcpConnection conn(argv[1], argv[2], &msg);
SocketClient socketClient(&conn); SocketClient socketClient(&conn);
if ( !socketClient.connect() ) { if ( !socketClient.connect() ) {

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

Loading…
Cancel
Save