LogCabin
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Public Attributes
LogCabin::RPC::ClientSession::MessageSocketHandler Class Reference

This handles events from messageSocket. More...

Inheritance diagram for LogCabin::RPC::ClientSession::MessageSocketHandler:
LogCabin::RPC::MessageSocket::Handler

List of all members.

Public Member Functions

 MessageSocketHandler (ClientSession &clientSession)
void handleReceivedMessage (MessageId messageId, Core::Buffer message)
 This method is overridden by a subclass and invoked when a new message is received.
void handleDisconnect ()
 This method is overridden by a subclass and invoked when the socket has been disconnected and will be closed soon.

Public Attributes

ClientSessionsession

Detailed Description

This handles events from messageSocket.

Definition at line 149 of file ClientSession.h.


Constructor & Destructor Documentation

Definition at line 74 of file ClientSession.cc.


Member Function Documentation

This method is overridden by a subclass and invoked when a new message is received.

This method will be invoked by the main event loop on whatever thread is running the Event::Loop.

Parameters:
messageIdAn opaque identifier for the message set by the sender.
contentsThe data received.

Implements LogCabin::RPC::MessageSocket::Handler.

Definition at line 81 of file ClientSession.cc.

This method is overridden by a subclass and invoked when the socket has been disconnected and will be closed soon.

It is safe to destroy the MessageSocket during this call. This method will be invoked by the main event loop at any time on whatever thread is running the Event::Loop.

Note that MessageSocket::close() calls this method as well, even if it's already been called.

Implements LogCabin::RPC::MessageSocket::Handler.

Definition at line 136 of file ClientSession.cc.


Member Data Documentation

Definition at line 154 of file ClientSession.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines