#ifndef TCP_H #define TCP_H #define MAX_TCP 65535 #include #include #include #include #include #include #include #include #ifdef __FreeBSD__ #include #endif using namespace std; int createSocket(); void connect(int s, uint16_t port, char *hostname, int timeout); int sendMsg(int s, const char *msg, size_t msgLength); int recvMsg(int s, char *msg, size_t msgLength); #endif