|
Nebula
|
#include <messageclient.h>
Wrapper class for the Net::TcpClient that sends data in special message container.
Inherits TcpClient.
Public Member Functions | |
| MessageClient () | |
| constructor | |
| virtual | ~MessageClient () |
| destructor | |
| virtual Result | Connect () |
| establish a connection with the server | |
| virtual void | Disconnect () |
| disconnect from the server | |
| virtual bool | Send () |
| send accumulated content of send stream to server | |
| virtual const Ptr< IO::Stream > & | GetSendStream () |
| access to send stream | |
| virtual bool | Recv () |
| receive data from server into recv stream | |
| virtual const Ptr< IO::Stream > & | GetRecvStream () |
| access to recv stream | |
Private Member Functions | |
| __DeclareClass (MessageClient) | |
Private Attributes | |
| TcpMessageCodec | codec |
| Ptr< IO::Stream > | sendMessageStream |
| Ptr< IO::Stream > | recvMessageStream |
| Util::Queue< Ptr< IO::Stream > > | msgQueue |
| Net::MessageClient::MessageClient | ( | ) |
constructor
|
virtual |
destructor
|
private |
|
virtual |
establish a connection with the server
Establish a connection with the server.
See TcpClient for details.
|
virtual |
disconnect from the server
|
virtual |
access to recv stream
|
virtual |
access to send stream
|
virtual |
receive data from server into recv stream
|
virtual |
send accumulated content of send stream to server
|
private |
|
private |
|
private |
|
private |