conexus logo

Conexus::IPv4::TCPServer Class Reference
[IPv4 EndpointsConexus I/O Endpoints]

The TCPServer generates TCP endpoints when a connection request is made. More...

#include <ipv4_tcpserver.h>

Inheritance diagram for Conexus::IPv4::TCPServer:

Inheritance graph
[legend]

List of all members.

Public Types

typedef ConexusPointer< TCPServerpointer

Public Member Functions

 CONEXUS_ENDPOINTSERVER_GENERIC_CREATE ()
virtual ~TCPServer ()
virtual Addressaddress ()
virtual void set_address (Address addr)
virtual void set_address (uint32_t addr, uint16_t port)
virtual void set_address (const std::string &addr, uint16_t port)
int backlog ()
TCP::pointer listener ()
const TCP::pointer listener () const
TCPlistener_ref ()
 Added for conexus-dbus interface accessor.
void enable_reuse_address (bool enable=true)

Static Public Member Functions

static pointer create (uint16_t port=0, int backlog=5)
static pointer create (uint32_t address, uint16_t port, int backlog=5)
static pointer create (const std::string &address, uint16_t port=0, int backlog=5)

Protected Member Functions

 TCPServer (uint32_t address, uint16_t port, int backlog)
 TCPServer (const std::string &address, uint16_t port, int backlog)
virtual void pre_start ()
virtual void post_stop ()
virtual void service_thread_main ()
virtual TCP::pointer create_accepted_endpoint (int fd)

Protected Attributes

TCP::pointer m_listener
int m_backlog


Detailed Description

The TCPServer generates TCP endpoints when a connection request is made.

Author:
Rick L Vinyard Jr <rvinyard@cs.nmsu.edu>

Member Typedef Documentation


Constructor & Destructor Documentation

Conexus::IPv4::TCPServer::TCPServer ( uint32_t  address,
uint16_t  port,
int  backlog 
) [protected]

References create(), and m_listener.

Referenced by create().

Conexus::IPv4::TCPServer::TCPServer ( const std::string &  address,
uint16_t  port,
int  backlog 
) [protected]

References create(), and m_listener.

Conexus::IPv4::TCPServer::~TCPServer (  )  [virtual]

Reimplemented in Conexus::SSL::IPv4::TCPServer.


Member Function Documentation

Address & Conexus::IPv4::TCPServer::address (  )  [virtual]

References m_listener.

int Conexus::IPv4::TCPServer::backlog (  ) 

References m_backlog.

Conexus::IPv4::TCPServer::CONEXUS_ENDPOINTSERVER_GENERIC_CREATE (  ) 

TCPServer::pointer Conexus::IPv4::TCPServer::create ( const std::string &  address,
uint16_t  port = 0,
int  backlog = 5 
) [static]

References TCPServer().

TCPServer::pointer Conexus::IPv4::TCPServer::create ( uint32_t  address,
uint16_t  port,
int  backlog = 5 
) [static]

References TCPServer().

TCPServer::pointer Conexus::IPv4::TCPServer::create ( uint16_t  port = 0,
int  backlog = 5 
) [static]

TCP::pointer Conexus::IPv4::TCPServer::create_accepted_endpoint ( int  fd  )  [protected, virtual]

Reimplemented in Conexus::SSL::IPv4::TCPServer.

References create().

Referenced by service_thread_main().

void Conexus::IPv4::TCPServer::enable_reuse_address ( bool  enable = true  ) 

References m_listener.

const TCP::pointer Conexus::IPv4::TCPServer::listener (  )  const

References m_listener.

TCP::pointer Conexus::IPv4::TCPServer::listener (  ) 

References m_listener.

TCP & Conexus::IPv4::TCPServer::listener_ref (  ) 

Added for conexus-dbus interface accessor.

References m_listener.

void Conexus::IPv4::TCPServer::post_stop (  )  [protected, virtual]

Reimplemented from Conexus::Server.

References m_listener.

void Conexus::IPv4::TCPServer::pre_start (  )  [protected, virtual]

Reimplemented from Conexus::Server.

References m_backlog, and m_listener.

void Conexus::IPv4::TCPServer::service_thread_main (  )  [protected, virtual]

void Conexus::IPv4::TCPServer::set_address ( const std::string &  addr,
uint16_t  port 
) [virtual]

References m_listener.

void Conexus::IPv4::TCPServer::set_address ( uint32_t  addr,
uint16_t  port 
) [virtual]

References m_listener.

void Conexus::IPv4::TCPServer::set_address ( Address  addr  )  [virtual]

References m_listener.


Member Data Documentation

Referenced by backlog(), and pre_start().


The documentation for this class was generated from the following files:

Generated on Wed Jul 8 15:51:28 2009 for conexus by doxygen 1.5.8