A class that communicates with a Client or Server via a SOCKET and expects send data of type Message.
More...
#include <TcpTransmitter.h>
A class that communicates with a Client or Server via a SOCKET and expects send data of type Message.
- Copyright
- © 2010 Helmut Jakoby
- Author
- Helmut Jakoby
◆ Transmitter() [1/3]
| tcp::Transmitter::Transmitter |
( |
| ) |
|
|
protected |
The standard constructor is not available.
◆ Transmitter() [2/3]
| tcp::Transmitter::Transmitter |
( |
SOCKET | Socket | ) |
|
Constructor with parameter passing.
- Parameters
-
| [in] | Socket | The socket via which communication takes place. |
- Exceptions
-
◆ ~Transmitter()
| virtual tcp::Transmitter::~Transmitter |
( |
| ) |
|
|
virtual |
◆ Transmitter() [3/3]
| tcp::Transmitter::Transmitter |
( |
const Transmitter & | | ) |
|
|
private |
The copy constructor is not available.
◆ acceptOrder()
| int tcp::Transmitter::acceptOrder |
( |
Message * | pTcpMessage | ) |
|
Includes the message in the list of send messages.
- Parameters
-
| [in] | pTcpMessage | The message to be sent. |
- Returns
- A return < 0 indicates an error or information.
- Attention
- The passed object is taken over by this object and must not be changed or removed from memory by the calling instance.
◆ cancel()
| virtual void tcp::Transmitter::cancel |
( |
| ) |
|
|
overridevirtual |
When the thread ends, this virtual method is called. Here the list of send messages is cleaned up.
- Note
- This method only exists when not compiled with POSIX threads (defined (__PTHREADS)).
Reimplemented from eut::RepeatingThread.
◆ operator=()
The assignment operator is not available.
◆ work()
| virtual void tcp::Transmitter::work |
( |
| ) |
|
|
overrideprotectedvirtual |
Sends the data from the send message list to the socket passed in the constructor.
Implements eut::RepeatingThread.
◆ m_MsgQueue
| std::queue<Message *> tcp::Transmitter::m_MsgQueue |
|
private |
The queue with the messages to be sent.
The documentation for this class was generated from the following file: