GlobalObjects
|
A special ServerReceiverTransmitter for the Server. Its ServerReceiver is of the derived type TcpServerReceiver and this can send orders. More...
#include <GloServer.h>
Public Member Functions | |
TcpServerReceiverTransmitter (tcp::Transmitter *pTransmitter, tcp::ServerReceiver *pReceiver) | |
virtual | ~TcpServerReceiverTransmitter () |
ServerThread * | getServerThread () |
virtual int | sendOrder (OrderMsg *pOrderMsg, tcp::ActionCode eTcpActionCode) |
Public Member Functions inherited from tcp::Server::ServerReceiverTransmitter | |
ServerReceiverTransmitter (Transmitter *pTransmitter, ServerReceiver *pReceiver) | |
virtual | ~ServerReceiverTransmitter () |
int | getPeerName (std::string &rstrIPAdress, unsigned int &ruiPort) const |
int | send (char *pszRawMsg, unsigned int uiRawMsgSize, unsigned int uiMessageID=0, int iActionCode=0, const std::string &rstrInfo="") |
int | send (Message *pTcpMessage) |
void | setValid (bool bValid) |
SOCKET | Socket () const |
Protected Member Functions | |
TcpServerReceiverTransmitter () | |
Protected Member Functions inherited from tcp::Server::ServerReceiverTransmitter | |
ServerReceiverTransmitter () | |
Private Member Functions | |
TcpServerReceiverTransmitter (const TcpServerReceiverTransmitter &) | |
TcpServerReceiverTransmitter & | operator= (const TcpServerReceiverTransmitter &) |
Private Attributes | |
ServerThread * | m_pServerThread |
A special ServerReceiverTransmitter for the Server. Its ServerReceiver is of the derived type TcpServerReceiver and this can send orders.
|
protected |
This constructor is not available.
glo::Server::TcpServerReceiverTransmitter::TcpServerReceiverTransmitter | ( | tcp::Transmitter * | pTransmitter, |
tcp::ServerReceiver * | pReceiver ) |
This constructor starts the passed reader and writer and instantiates its ServerThread with itself as parameter.
[in] | pTransmitter | The writer (sends data to a Client). |
[in] | pReceiver | The reader (receives data from a Client) |
eut::ErrorNException | An exception is thrown if an error occurs. |
|
virtual |
Destructor; the ServerThread, Writer and Reader are mined.
|
private |
The copy constructor is not available.
ServerThread * glo::Server::TcpServerReceiverTransmitter::getServerThread | ( | ) |
Returns a pointer to its server thread.
|
private |
The assignment operator is not available.
|
virtual |
Converts the order into a streamable buffer and sends it to the client.
[in] | pOrderMsg | The order to be sent. |
[in] | eTcpActionCode | The TCP action code. |
|
private |
The ServerThread (derived from Communicator and counterpart of the Manager) knows about its TcpServerReceiverTransmitter and can therefore communicate with the tcp::Transmitter and ServerReceiver.
Is instantiated in the constructor.