1#ifndef INC_TCPRECEIVERTRANSMITTER_H
2#define INC_TCPRECEIVERTRANSMITTER_H
46#if defined (__PTHREADS)
47 #include "EuEndlessPThread.h"
52#if defined(_MSC_VER) || defined(__MINGW32__) || defined(__MINGW64__)
54#elif defined(__GNUC__)
63 #include <sys/types.h>
64 #include <sys/socket.h>
65 #include <netinet/in.h>
67 #include <arpa/inet.h>
68 #define SOCKET uintptr_t
69 #define SOCKADDR_IN sockaddr_in
70 #define SOCKADDR sockaddr
71 #define HOSTENT hostent
72 #define INVALID_SOCKET (SOCKET)(~0)
73 #define SOCKET_ERROR (-1)
78 #pragma warning( disable : 4251 )
80 #pragma warning( disable : 4275 )
99 #if defined (__PTHREADS)
193 #if defined (__PTHREADS)
194 virtual int takeABreak();
210 #if defined (__PTHREADS)
211 virtual int finishBreak();
231 int getPeerName( std::string & rstrIPAdress,
unsigned int & ruiPort )
const;
263 #pragma warning( default : 4251 )
265 #pragma warning( default : 4275 )
Header for RepeatingThread
For each library, here 'TcpLib' there is a type file.
#define __tcp_export_dll
Definition TcpTypes.h:59
Base class for a thread that executes its work endlessly until aborted.
Definition EuRepeatingThread.h:93
Superclass for all Receiver and Transmitter, which communicate via a SOCKET.
Definition TcpReceiverTransmitter.h:104
virtual ~ReceiverTransmitter()
virtual void takeABreak() override
SOCKET m_Socket
Definition TcpReceiverTransmitter.h:117
ReceiverTransmitter(const ReceiverTransmitter &)
virtual void finishBreak() override
int getPeerName(std::string &rstrIPAdress, unsigned int &ruiPort) const
ReceiverTransmitter(SOCKET Socket)
Definition TcpClient.h:55