RTBKit  0.9
Open-source framework to create real-time ad bidding systems.
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator
Public Member Functions | Protected Attributes
Datacratic::AcceptorT< SocketTransport > Struct Template Reference
Inheritance diagram for Datacratic::AcceptorT< SocketTransport >:
Datacratic::Acceptor

List of all members.

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
PassiveEndpointendpoint
bool nameLookup
bool shutdown

Detailed Description

template<>
struct Datacratic::AcceptorT< SocketTransport >

Definition at line 171 of file passive_endpoint.h.


Member Function Documentation

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.

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.


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