TcpLib
|
Superclass for all TcpReceiver that communicate via a SOCKET and deliver their receive result to their parent object. More...
#include <TcpReceiver.h>
Public Member Functions | |
Receiver (TcpMain *pParent, SOCKET Socket) | |
virtual | ~Receiver () |
Public Member Functions inherited from tcp::ReceiverTransmitter | |
ReceiverTransmitter (SOCKET Socket) | |
virtual | ~ReceiverTransmitter () |
virtual void | takeABreak () override |
virtual void | finishBreak () override |
int | getPeerName (std::string &rstrIPAdress, unsigned int &ruiPort) const |
SOCKET | Socket () const |
Public Member Functions inherited from eut::RepeatingThread | |
RepeatingThread () | |
virtual | ~RepeatingThread () |
virtual int | start () |
virtual void | cancel () |
bool | testCancel () |
RepeatingThread::STATUS | status () const |
bool | isInExclusiveAccess () const |
void | setExclusiveAccess () |
void | unsetExclusiveAccess () |
int | getBreakCounter () |
void | waitForInput () |
void | signalInput () |
Protected Member Functions | |
Receiver () | |
Receiver (SOCKET Socket) | |
Protected Member Functions inherited from tcp::ReceiverTransmitter | |
ReceiverTransmitter () | |
Protected Member Functions inherited from eut::RepeatingThread | |
void | threadWork () |
void | setStatus (STATUS eStatus) |
STATUS | getStatus () |
void | toOrder (ORDER eOrder) |
ORDER | getOrder () |
virtual void | work ()=0 |
Protected Attributes | |
TcpMain * | m_pParentTcpMain |
Protected Attributes inherited from tcp::ReceiverTransmitter | |
SOCKET | m_Socket |
Private Member Functions | |
Receiver (const Receiver &) | |
Receiver & | operator= (const Receiver &) |
Additional Inherited Members | |
Public Types inherited from eut::RepeatingThread | |
enum | EuTHREADERROR { EuTHREAD_ERR_NO_THREAD = -10301 , EuTHREAD_ERR_THREAD_ALREADY_WORKING = -10302 , EuTHREAD_ERR_THREAD_BREAK_COUNT_LESS_THAN_ZERO = -10303 , EuTHREAD_ERR_UNKNOWN = -10400 } |
Error range = -10301 to -10400 More... | |
enum | STATUS { eAT_THE_START , eWORKING , ePAUSING , eENDING , eCOMPLETED } |
enum | ORDER { eUNDEFINED , eDO_WORK , eEXIT } |
Superclass for all TcpReceiver that communicate via a SOCKET and deliver their receive result to their parent object.
|
protected |
This constructor is not available.
|
protected |
This constructor is not available.
tcp::Receiver::Receiver | ( | TcpMain * | pParent, |
SOCKET | Socket ) |
Constructor with parameter passing.
[in] | pParent | The owning parent object. |
[in] | Socket | The socket used for communication. |
eut::ErrorNException | An exception is thrown if an error occurs. |
|
virtual |
Destructor.
|
private |
The copy constructor is not available.
The assignment operator is not available.