LogCabin
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Attributes
LogCabin::RPC::MessageSocket::ReceiveSocket Struct Reference

This class is an Event::File monitor that calls readable() when the socket can be read from without blocking. More...

Inheritance diagram for LogCabin::RPC::MessageSocket::ReceiveSocket:
LogCabin::Event::File

List of all members.

Public Member Functions

 ReceiveSocket (int fd, MessageSocket &messageSocket)
 ~ReceiveSocket ()
void handleFileEvent (uint32_t events)
 This method is overridden by a subclass and invoked when a file event occurs.

Private Attributes

MessageSocketmessageSocket

Detailed Description

This class is an Event::File monitor that calls readable() when the socket can be read from without blocking.

This is always set for EPOLLIN events in a non-one-shot (persistent) manner.

Definition at line 168 of file MessageSocket.h.


Constructor & Destructor Documentation

Definition at line 78 of file MessageSocket.cc.

Definition at line 95 of file MessageSocket.cc.


Member Function Documentation

This method is overridden by a subclass and invoked when a file event occurs.

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

If the event still exists when this method returns (e.g., the file is readable but the method did not read the data), then the method will be invoked again (unless flags such as EPOLLONESHOT or EPOLLET are used).

Parameters:
eventsIndicates whether the file is readable or writable or both (OR'ed combination of EPOLL_EVENTS values).

Implements LogCabin::Event::File.

Definition at line 100 of file MessageSocket.cc.


Member Data Documentation

Definition at line 174 of file MessageSocket.h.


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