conexus logo

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

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

#include <ipv6_tcpserver.h>

Inheritance diagram for Conexus::IPv6::TCPServer:

Inheritance graph
[legend]

List of all members.

Public Types

typedef ConexusPointer< TCPServerpointer

Public Member Functions

 CONEXUS_ENDPOINTSERVER_GENERIC_CREATE ()
virtual ~TCPServer ()
virtual Address & address ()
virtual void set_address (Address addr)
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 TCPServer::pointer create (uint16_t port=0, int backlog=5)
static TCPServer::pointer create (uint32_t address, uint16_t port, int backlog=5)
static TCPServer::pointer create (const struct in6_addr &address, uint16_t port=0, int backlog=5)
static TCPServer::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=5)
 TCPServer (const struct in6_addr &address, uint16_t port, int backlog=5)
 TCPServer (const std::string &address, uint16_t port, int backlog=5)
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::IPv6::TCPServer::TCPServer ( uint32_t  address,
uint16_t  port,
int  backlog = 5 
) [protected]

References create(), and m_listener.

Referenced by create().

Conexus::IPv6::TCPServer::TCPServer ( const struct in6_addr &  address,
uint16_t  port,
int  backlog = 5 
) [protected]

References create(), and m_listener.

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

References create(), and m_listener.

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

Reimplemented in Conexus::SSL::IPv6::TCPServer.


Member Function Documentation

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

References m_listener.

int Conexus::IPv6::TCPServer::backlog (  ) 

References m_backlog.

Conexus::IPv6::TCPServer::CONEXUS_ENDPOINTSERVER_GENERIC_CREATE (  ) 

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

References TCPServer().

TCPServer::pointer Conexus::IPv6::TCPServer::create ( const struct in6_addr &  address,
uint16_t  port = 0,
int  backlog = 5 
) [static]

References TCPServer().

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

References TCPServer().

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

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

Reimplemented in Conexus::SSL::IPv6::TCPServer.

References create().

Referenced by service_thread_main().

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

References m_listener.

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

References m_listener.

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

References m_listener.

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

Added for conexus-dbus interface accessor.

References m_listener.

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

Reimplemented from Conexus::Server.

References m_listener.

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

Reimplemented from Conexus::Server.

References m_backlog, and m_listener.

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

void Conexus::IPv6::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