
Is a special Tcp message for the Server. The socket is included so that the server knows to whom it should send the data. More...
#include <TcpMessage.h>

Public Member Functions | |
| ServerMessage (SOCKET ClientSocket, char *pszRawMsg, std::size_t nRawMsgSize, unsigned int uiMessageID, int iActionCode, const std::string &rstrInfo) | |
| ServerMessage (SOCKET ClientSocket, char *pszTransmitData, std::size_t nTransmitDataSize) | |
| virtual | ~ServerMessage () |
Public Member Functions inherited from tcp::Message | |
| Message (char *pszRawMsg, std::size_t nRawMsgSize, unsigned int uiMessageID, int iActionCode, const std::string &rstrInfo) | |
| Message (char *pszTransmitData, std::size_t nTransmitDataSize) | |
| virtual | ~Message () |
| int | getActionCode () const |
| std::string | getInfo () const |
| unsigned int | getMsgID () const |
| std::size_t | getRawMsg (char *&prszRawMsg, bool bCopy=true) |
| char * | getRawMsgPt () |
| std::size_t | getRawMsgSize () const |
| std::size_t | getTransmitData (char *&prszSendMsg, bool bCopy=true) |
| char * | getTransmitDataPt () |
| std::size_t | getTransmitDataSize () const |
Public Member Functions inherited from tcp::AbstractMessage | |
| virtual | ~AbstractMessage () |
Public Member Functions inherited from tcp::ServerAcceptMessage | |
| ServerAcceptMessage (SOCKET NewSocket) | |
| virtual | ~ServerAcceptMessage () |
| void | closeSocket () |
| SOCKET | getSocket () |
Protected Member Functions | |
| ServerMessage () | |
| ServerMessage (char *, std::size_t) | |
Protected Member Functions inherited from tcp::Message | |
| Message () | |
Protected Member Functions inherited from tcp::AbstractMessage | |
| AbstractMessage () | |
Protected Member Functions inherited from tcp::ServerAcceptMessage | |
| ServerAcceptMessage () | |
Private Member Functions | |
| ServerMessage (const ServerMessage &) | |
| ServerMessage & | operator= (const ServerMessage &) |
Is a special Tcp message for the Server. The socket is included so that the server knows to whom it should send the data.
|
protected |
This constructor is not available.
Referenced by ServerMessage(), and operator=().
|
protected |
This constructor is not available.
| tcp::ServerMessage::ServerMessage | ( | SOCKET | ClientSocket, |
| char * | pszTransmitData, | ||
| std::size_t | nTransmitDataSize ) |
Art constructor with parameters.
| [in] | ClientSocket | The client socket. |
| [in] | pszTransmitData | The data buffer to be transmitted including all required Information:
|
| [in] | nTransmitDataSize | The size or length of the data buffer to be sent. |
| eut::ErrorNException | An exception is thrown if the attributes cannot be set from the data (e.g. because the header is incorrect). |
| tcp::ServerMessage::ServerMessage | ( | SOCKET | ClientSocket, |
| char * | pszRawMsg, | ||
| std::size_t | nRawMsgSize, | ||
| unsigned int | uiMessageID, | ||
| int | iActionCode, | ||
| const std::string & | rstrInfo ) |
Art constructor with parameters.
| [in] | ClientSocket | The client socket. |
| [in] | pszRawMsg | The message data. |
| [in] | nRawMsgSize | The size or length of the message data. |
| [in] | uiMessageID | A unique ID. |
| [in] | iActionCode | The ActionCode, see m_iActionCode. |
| [in] | rstrInfo | An additional text info |
| eut::ErrorNException | If m_pszTransmitData cannot be set from the data (e.g. because attributes are invalid), an exception is thrown. |
|
virtual |
Destructor.
|
private |
The copy constructor is not available.
References ServerMessage().
|
private |
The assignment operator is not available.
References ServerMessage().