LogCabin
|
A socket that listens on a particular address. More...
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 | |
OpaqueServer & | server |
A socket that listens on a particular address.
Definition at line 184 of file OpaqueServer.h.
LogCabin::RPC::OpaqueServer::BoundListener::BoundListener | ( | OpaqueServer & | server, |
int | fd | ||
) |
Constructor.
server | OpaqueServer that owns this object. |
fd | The underlying socket that is listening on a particular address. |
Definition at line 129 of file OpaqueServer.cc.
void LogCabin::RPC::OpaqueServer::BoundListener::handleFileEvent | ( | uint32_t | events | ) | [virtual] |
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).
events | Indicates 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.
Definition at line 196 of file OpaqueServer.h.