39#if defined (__PTHREADS)
40 #include "EuEndlessPThread.h"
41 #include <semaphore.h>
46#if defined(_MSC_VER) || defined(__MINGW32__) || defined(__MINGW64__)
48#elif defined(__GNUC__)
57 #include <sys/types.h>
58 #include <sys/socket.h>
59 #include <netinet/in.h>
61 #include <arpa/inet.h>
62 #define SOCKET uintptr_t
63 #define SOCKADDR_IN sockaddr_in
64 #define SOCKADDR sockaddr
65 #define HOSTENT hostent
66 #define INVALID_SOCKET (SOCKET)(~0)
67 #define SOCKET_ERROR (-1)
78 #pragma warning( disable : 4251 )
80 #pragma warning( disable : 4275 )
98 #if defined (__PTHREADS)
300 unsigned int uiDataSize,
483 #pragma warning( default : 4251 )
485 #pragma warning( default : 4275 )
Header for RepeatingThread
For each library, here 'TcpLib' there is a type file.
#define __tcp_export_dll
Definition: TcpTypes.h:53
Base class for a thread that executes its work endlessly until aborted.
Definition: EuRepeatingThread.h:78
Contains a data stream which can be sent and received by the Tcp classes.
Definition: TcpMessage.h:161
Superclass for Client and Server, which 'learns' its know-how in the derived classes.
Definition: TcpMain.h:103
unsigned int getPortNum() const
void setWSACleanup() const
SOCKET m_MainSocket
Definition: TcpMain.h:206
virtual void setDataSize(unsigned int uiDataSize)
SOCKET getMainSocket() const
int m_iSecTimeOut
Definition: TcpMain.h:136
virtual int send(Message *pTcpMessage)=0
unsigned int m_uiServerPort
Definition: TcpMain.h:149
int m_iSocketType
Definition: TcpMain.h:184
TcpMain(unsigned int uiPort, int iAdressFamily, int iSocketType, int iProtocol, int iSecTimeOut)
unsigned int m_uiDataSize
Definition: TcpMain.h:162
int m_iAdressFamily
Definition: TcpMain.h:173
static unsigned int m_uiTcpMainCounter
Definition: TcpMain.h:120
unsigned int getDataSize() const
TcpMain(unsigned int uiPort, int iAdressFamily, int iSocketType, int iProtocol, unsigned int uiDataSize, int iSecTimeOut)
void setTimeOutSec(int iSecTimeOut)
int m_iProtocol
Definition: TcpMain.h:195
Definition: TcpClient.h:48