I have this included:
#include <sys/socket.h> /* for socket(), connect(), send(), and recv() */
/* Establish the connection to the echo server */
if (connect(sock, (struct sockaddr *) &echoServAddr, sizeof(echoServAddr)) < 0)
DieWithError("connect() failed");
But I am getting this:
TCPClient.cpp:395: error: no matching function for call to ‘ClientHandler::connect(int&, sockaddr*, unsigned int)’
The thing is I am also using QT.
should I have somethihng before "connect"... SOMETHING::connect(....)
Thanks :)