Nebula
Loading...
Searching...
No Matches
Net::MessageClient Class Reference

#include <messageclient.h>

Detailed Description

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::StreamsendMessageStream
 
Ptr< IO::StreamrecvMessageStream
 
Util::Queue< Ptr< IO::Stream > > msgQueue
 

Constructor & Destructor Documentation

◆ MessageClient()

Net::MessageClient::MessageClient ( )

constructor

◆ ~MessageClient()

Net::MessageClient::~MessageClient ( )
virtual

destructor

Member Function Documentation

◆ __DeclareClass()

Net::MessageClient::__DeclareClass ( MessageClient )
private

◆ Connect()

TcpClient::Result Net::MessageClient::Connect ( )
virtual

establish a connection with the server

Establish a connection with the server.

See TcpClient for details.

◆ Disconnect()

void Net::MessageClient::Disconnect ( )
virtual

disconnect from the server

◆ GetRecvStream()

const Ptr< IO::Stream > & Net::MessageClient::GetRecvStream ( )
virtual

access to recv stream

◆ GetSendStream()

const Ptr< IO::Stream > & Net::MessageClient::GetSendStream ( )
virtual

access to send stream

◆ Recv()

bool Net::MessageClient::Recv ( )
virtual

receive data from server into recv stream

◆ Send()

bool Net::MessageClient::Send ( )
virtual

send accumulated content of send stream to server

Member Data Documentation

◆ codec

TcpMessageCodec Net::MessageClient::codec
private

◆ msgQueue

Util::Queue<Ptr<IO::Stream> > Net::MessageClient::msgQueue
private

◆ recvMessageStream

Ptr<IO::Stream> Net::MessageClient::recvMessageStream
private

◆ sendMessageStream

Ptr<IO::Stream> Net::MessageClient::sendMessageStream
private

The documentation for this class was generated from the following files: