GlobalObjects
Loading...
Searching...
No Matches
tcp::Receiver Class Reference

Superclass for all TcpReceiver that communicate via a SOCKET and deliver their receive result to their parent object. More...

#include <TcpReceiver.h>

Inheritance diagram for tcp::Receiver:

Public Member Functions

 Receiver (TcpMain *pParent, SOCKET Socket)
 
virtual ~Receiver ()
 
- Public Member Functions inherited from tcp::ReceiverTransmitter
 ReceiverTransmitter (SOCKET Socket)
 
virtual ~ReceiverTransmitter ()
 
virtual void finishBreak () override
 
int getPeerName (std::string &rstrIPAdress, unsigned int &ruiPort) const
 
SOCKET Socket () const
 
virtual void takeABreak () override
 
- Public Member Functions inherited from eut::RepeatingThread
 RepeatingThread ()
 
virtual ~RepeatingThread ()
 
virtual void cancel ()
 
int getBreakCounter ()
 
bool isInExclusiveAccess () const
 
void setExclusiveAccess ()
 
void signalInput ()
 
virtual int start ()
 
RepeatingThread::STATUS status () const
 
bool testCancel ()
 
void unsetExclusiveAccess ()
 
void waitForInput ()
 

Protected Member Functions

 Receiver ()
 
 Receiver (SOCKET Socket)
 
- Protected Member Functions inherited from tcp::ReceiverTransmitter
 ReceiverTransmitter ()
 
- Protected Member Functions inherited from eut::RepeatingThread
ORDER getOrder ()
 
STATUS getStatus ()
 
void setStatus (STATUS eStatus)
 
void threadWork ()
 
void toOrder (ORDER eOrder)
 
virtual void work ()=0
 

Protected Attributes

TcpMainm_pParentTcpMain
 
- Protected Attributes inherited from tcp::ReceiverTransmitter
SOCKET m_Socket
 

Private Member Functions

 Receiver (const Receiver &)
 
Receiveroperator= (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  ORDER { eUNDEFINED , eDO_WORK , eEXIT }
 
enum  STATUS {
  eAT_THE_START , eWORKING , ePAUSING , eENDING ,
  eCOMPLETED
}
 
- Public Attributes inherited from eut::RepeatingThread
std::string m_strDebugInfo
 

Detailed Description

Superclass for all TcpReceiver that communicate via a SOCKET and deliver their receive result to their parent object.

See also
m_pParentTcpMain
Author
Helmut Jakoby

Constructor & Destructor Documentation

◆ Receiver() [1/4]

tcp::Receiver::Receiver ( )
protected

This constructor is not available.

◆ Receiver() [2/4]

tcp::Receiver::Receiver ( SOCKET Socket)
protected

This constructor is not available.

◆ Receiver() [3/4]

tcp::Receiver::Receiver ( TcpMain * pParent,
SOCKET Socket )

Constructor with parameter passing.

Parameters
[in]pParentThe owning parent object.
[in]SocketThe socket used for communication.
Exceptions
eut::ErrorNExceptionAn exception is thrown if an error occurs.

◆ ~Receiver()

virtual tcp::Receiver::~Receiver ( )
virtual

Destructor.

◆ Receiver() [4/4]

tcp::Receiver::Receiver ( const Receiver & )
private

The copy constructor is not available.

Member Function Documentation

◆ operator=()

Receiver & tcp::Receiver::operator= ( const Receiver & )
private

The assignment operator is not available.

Member Data Documentation

◆ m_pParentTcpMain

TcpMain* tcp::Receiver::m_pParentTcpMain
protected

The parent object (Client or Server)


The documentation for this class was generated from the following file: