TcpLib
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
"
45
#include "
TcpReceiverTransmitter.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
//-----------------------------------------------------------------------------
60
namespace
tcp
61
{
62
//---------------------------------------------------------------------------
63
//Forwards
64
class
Server;
65
class
AbstractMessage;
66
class
Client;
67
//---------------------------------------------------------------------------
84
class
__tcp_export_dll
Receiver
:
public
ReceiverTransmitter
85
{
86
protected
:
87
//============== Attribute
88
//-----------------------------------------------------------------------
98
TcpMain
*
m_pParentTcpMain
;
99
//-----------------------------------------------------------------------
100
101
//============== Konstruktoren
102
//-----------------------------------------------------------------------
112
Receiver
();
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
EuRepeatingThread.h
Header for RepeatingThread
TcpMain.h
Header for TcpMain
TcpReceiverTransmitter.h
Header for ReceiverTransmitter.
TcpTypes.h
For each library, here 'TcpLib' there is a type file.
__tcp_export_dll
#define __tcp_export_dll
Definition
TcpTypes.h:59
tcp::Receiver
Superclass for all TcpReceiver that communicate via a SOCKET and deliver their receive result to thei...
Definition
TcpReceiver.h:85
tcp::Receiver::m_pParentTcpMain
TcpMain * m_pParentTcpMain
Definition
TcpReceiver.h:98
tcp::Receiver::Receiver
Receiver(TcpMain *pParent, SOCKET Socket)
tcp::Receiver::~Receiver
virtual ~Receiver()
tcp::Receiver::Receiver
Receiver()
tcp::Receiver::Receiver
Receiver(SOCKET Socket)
tcp::Receiver::Receiver
Receiver(const Receiver &)
tcp::ReceiverTransmitter
Superclass for all Receiver and Transmitter, which communicate via a SOCKET.
Definition
TcpReceiverTransmitter.h:104
tcp::TcpMain
Superclass for Client and Server, which 'learns' its know-how in the derived classes.
Definition
TcpMain.h:110
tcp
Definition
TcpClient.h:55
winsock.h
include
TcpReceiver.h
Generated by
1.12.0