Superclass for all Receiver and Transmitter, which communicate via a SOCKET.
More...
#include <TcpReceiverTransmitter.h>
Superclass for all Receiver and Transmitter, which communicate via a SOCKET.
- Copyright
- © 2010 Helmut Jakoby
- Author
- Helmut Jakoby
◆ ReceiverTransmitter() [1/3]
tcp::ReceiverTransmitter::ReceiverTransmitter |
( |
| ) |
|
|
protected |
This constructor is not available.
◆ ReceiverTransmitter() [2/3]
tcp::ReceiverTransmitter::ReceiverTransmitter |
( |
SOCKET | Socket | ) |
|
Constructor with parameter passing.
- Parameters
-
[in] | Socket | The socket via which communication takes place. |
- Exceptions
-
◆ ~ReceiverTransmitter()
virtual tcp::ReceiverTransmitter::~ReceiverTransmitter |
( |
| ) |
|
|
virtual |
Destructor. The socked is closed.
◆ ReceiverTransmitter() [3/3]
The copy constructor is not available.
◆ finishBreak()
virtual void tcp::ReceiverTransmitter::finishBreak |
( |
| ) |
|
|
overridevirtual |
These threads must not pause because they themselves are blocking!
- Exceptions
-
Reimplemented from eut::RepeatingThread.
◆ getPeerName()
int tcp::ReceiverTransmitter::getPeerName |
( |
std::string & | rstrIPAdress, |
|
|
unsigned int & | ruiPort ) const |
Returns the IP address and the port.
- Parameters
-
[in,out] | rstrIPAdress | The IP address (e.g. "LOCALHOST" or "192.168.2.102"). |
[in,out] | ruiPort | The port which is addressed. |
- Returns
- A return value < 0 indicates an error.
◆ operator=()
The assignment operator is not available.
◆ Socket()
SOCKET tcp::ReceiverTransmitter::Socket |
( |
| ) |
const |
◆ takeABreak()
virtual void tcp::ReceiverTransmitter::takeABreak |
( |
| ) |
|
|
overridevirtual |
These threads must not pause because they themselves are blocking!
- Exceptions
-
Reimplemented from eut::RepeatingThread.
◆ m_Socket
SOCKET tcp::ReceiverTransmitter::m_Socket |
|
protected |
All derived classes communicate via a socket.
The documentation for this class was generated from the following file: