GlobalObjects
Loading...
Searching...
No Matches
TcpReceiver.h
Go to the documentation of this file.
1#ifndef INC_TCPRECEIVER_H
2#define INC_TCPRECEIVER_H
3//-----------------------------------------------------------------------------
43//-----------------------------------------------------------------------------
44#include "TcpTypes.h"
46
47#if defined (__PTHREADS)
48 #include "EuEndlessPThread.h"
49#else
50 #include "EuRepeatingThread.h"
51#endif
52
53#include "TcpMain.h"
54#include <queue>
55
56#if defined(_MSC_VER) || defined(__MINGW32__) || defined(__MINGW64__)
57 #include <winsock.h>
58#endif
59//-----------------------------------------------------------------------------
60namespace tcp
61{
62 //---------------------------------------------------------------------------
63 //Forwards
64 class Server;
65 class AbstractMessage;
66 class Client;
67 //---------------------------------------------------------------------------
85 {
86 protected:
87 //============== Attribute
88 //-----------------------------------------------------------------------
99 //-----------------------------------------------------------------------
100
101 //============== Konstruktoren
102 //-----------------------------------------------------------------------
113 //-----------------------------------------------------------------------
123 Receiver( SOCKET Socket );
124 //-----------------------------------------------------------------------
125
126
127 public:
128 //============== Konstruktoren
129 //-----------------------------------------------------------------------
145 Receiver( TcpMain * pParent, SOCKET Socket );
146 //-----------------------------------------------------------------------
156 virtual ~Receiver();
157 //-----------------------------------------------------------------------
158
159 private:
160 //============== Copy-Konstruktor
161 //-----------------------------------------------------------------------
171 Receiver( const Receiver & );
172 //-----------------------------------------------------------------------
173
174 //============== Operatoren
175 //-----------------------------------------------------------------------
185 Receiver & operator= ( const Receiver & );
186 //-----------------------------------------------------------------------
187 };
188 //---------------------------------------------------------------------------
189} // namespace tcp
190//-----------------------------------------------------------------------------
191
192#endif
Header for EuEndlessPThread
Header for RepeatingThread
Header for TcpMain
Header for ReceiverTransmitter.
For each library, here 'TcpLib' there is a type file.
#define __tcp_export_dll
Definition TcpTypes.h:59
Superclass for all TcpReceiver that communicate via a SOCKET and deliver their receive result to thei...
Definition TcpReceiver.h:85
TcpMain * m_pParentTcpMain
Definition TcpReceiver.h:98
Receiver(TcpMain *pParent, SOCKET Socket)
virtual ~Receiver()
Receiver(SOCKET Socket)
Receiver(const Receiver &)
Superclass for all Receiver and Transmitter, which communicate via a SOCKET.
Definition TcpReceiverTransmitter.h:104
Superclass for Client and Server, which 'learns' its know-how in the derived classes.
Definition TcpMain.h:110
Definition TcpClient.h:55