26         #pragma message("Adding library: Winmm.lib")    27         #pragma comment(lib,"Winmm.lib")    28         #pragma message("Adding library: Ws2_32.lib")    29         #pragma comment(lib,"Ws2_32.lib")    31 #elif defined (__linux) || defined (__APPLE__)    34     #include <sys/socket.h>    35     #include <arpa/inet.h>    38     #define INVALID_SOCKET (-1)    44     CSocketOutConnection(
const char* theConnectionAddress,
int theConnectionPort,
unsigned short maxPacketSize=250,
char headerID1=59,
char headerID2=57);
    48     bool sendData(
char* data,
int dataSize);
    62     WSADATA _socketWsaData;
 bool sendData(char *data, int dataSize)
 
struct sockaddr_in _socketServer
 
char * receiveReplyData(int &dataSize)
 
bool _sendSimplePacket(char *packet, int packetLength, unsigned short packetsLeft)
 
virtual ~CSocketOutConnection()
 
int _socketConnectionPort
 
int _getTimeDiffInMs(int lastTime)
 
unsigned short _maxPacketSize
 
std::string _socketConnectionAddress
 
int _receiveSimplePacket(std::vector< char > &packet)
 
CSocketOutConnection(const char *theConnectionAddress, int theConnectionPort, unsigned short maxPacketSize=250, char headerID1=59, char headerID2=57)