RTBKit  0.9
Open-source framework to create real-time ad bidding systems.
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator
Public Member Functions | Public Attributes
Datacratic::FullPoller Struct Reference
Inheritance diagram for Datacratic::FullPoller:
Datacratic::AsyncEventSource Datacratic::TcpNamedEndpoint Datacratic::TcpNamedProxy

List of all members.

Public Member Functions

void init ()
void shutdown ()
void addFd (int fd, void *data=0)
void removeFd (int fd)
virtual void handleEvent (epoll_event &event)=0
void handleEvents ()
virtual bool poll () const
virtual bool processOne ()
virtual int selectFd () const

Public Attributes

int epollSocket_
bool shutdown_

Detailed Description

Definition at line 58 of file tcpsockets.h.


Member Function Documentation

bool FullPoller::poll ( ) const [virtual]

Returns true if there is work to be done. May be called from more than one thread. Should never block.

Reimplemented from Datacratic::AsyncEventSource.

Definition at line 262 of file tcpsockets.cc.

virtual bool Datacratic::FullPoller::processOne ( ) [inline, virtual]

Process a single message and return true if there are more to be processed.

This may be called from more than one thread if singleThreaded() is false.

Implements Datacratic::AsyncEventSource.

Definition at line 73 of file tcpsockets.h.

virtual int Datacratic::FullPoller::selectFd ( ) const [inline, virtual]

Return the file descriptor on which one should select() for messages from this source. The source should organize itself such that if the fd indicates ready for a read, there is something to do.

Should return -1 if it requires polling.

Should never block.

Reimplemented from Datacratic::AsyncEventSource.

Definition at line 81 of file tcpsockets.h.


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