RTBKit
0.9
Open-source framework to create real-time ad bidding systems.
|
Public Member Functions | |
virtual int | listen (PortRange const &portRange, const std::string &hostname, PassiveEndpoint *endpoint, bool nameLookup, int backlog) |
virtual void | closePeer () |
virtual std::string | hostname () const |
virtual int | port () const |
void | runAcceptThread () |
Protected Attributes | |
std::shared_ptr< boost::thread > | acceptThread |
ML::Wakeup_Fd | wakeup |
ACE_INET_Addr | addr |
int | fd |
PassiveEndpoint * | endpoint |
bool | nameLookup |
bool | shutdown |
Definition at line 171 of file passive_endpoint.h.
void Datacratic::AcceptorT< SocketTransport >::closePeer | ( | ) | [virtual] |
Close down the acceptor.
Implements Datacratic::Acceptor.
Definition at line 145 of file passive_endpoint.cc.
std::string Datacratic::AcceptorT< SocketTransport >::hostname | ( | ) | const [virtual] |
What host are we connected to?
Implements Datacratic::Acceptor.
Definition at line 163 of file passive_endpoint.cc.
int Datacratic::AcceptorT< SocketTransport >::listen | ( | PortRange const & | portRange, |
const std::string & | hostname, | ||
PassiveEndpoint * | endpoint, | ||
bool | nameLookup, | ||
int | backlog | ||
) | [virtual] |
Listen on the given address for connections.
Implements Datacratic::Acceptor.
Definition at line 71 of file passive_endpoint.cc.
int Datacratic::AcceptorT< SocketTransport >::port | ( | ) | const [virtual] |
What port are we listening on?
Implements Datacratic::Acceptor.
Definition at line 174 of file passive_endpoint.cc.
void Datacratic::AcceptorT< SocketTransport >::runAcceptThread | ( | ) |
Special thread to deal with accepting connections all by itself to avoid multiplexing them on the router.
Definition at line 190 of file passive_endpoint.cc.