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

A socket that listens on a particular address. More...

Inheritance diagram for LogCabin::RPC::OpaqueServer::BoundListener:
LogCabin::Event::File

List of all members.

Public Member Functions

 BoundListener (OpaqueServer &server, int fd)
 Constructor.
void handleFileEvent (uint32_t events)
 This method is overridden by a subclass and invoked when a file event occurs.

Public Attributes

OpaqueServerserver

Detailed Description

A socket that listens on a particular address.

Definition at line 184 of file OpaqueServer.h.


Constructor & Destructor Documentation

Constructor.

Parameters:
serverOpaqueServer that owns this object.
fdThe underlying socket that is listening on a particular address.

Definition at line 129 of file OpaqueServer.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 138 of file OpaqueServer.cc.


Member Data Documentation

Definition at line 196 of file OpaqueServer.h.


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