#include <ipv4_tcpserver.h>
Public Types | |
typedef ConexusPointer< TCPServer > | pointer |
Public Member Functions | |
CONEXUS_ENDPOINTSERVER_GENERIC_CREATE () | |
virtual | ~TCPServer () |
virtual Address & | address () |
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 |
TCP & | listener_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 |
typedef ConexusPointer<TCPServer> Conexus::IPv4::TCPServer::pointer |
Reimplemented from Conexus::EndpointServer.
Reimplemented in Conexus::SSL::IPv4::TCPServer.
Conexus::IPv4::TCPServer::TCPServer | ( | uint32_t | address, | |
uint16_t | port, | |||
int | backlog | |||
) | [protected] |
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.
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] |
References TCPServer().
Referenced by create_accepted_endpoint(), and TCPServer().
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 | ( | ) |
void Conexus::IPv4::TCPServer::post_stop | ( | ) | [protected, virtual] |
void Conexus::IPv4::TCPServer::pre_start | ( | ) | [protected, virtual] |
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.
int Conexus::IPv4::TCPServer::m_backlog [protected] |
Referenced by backlog(), and pre_start().
TCP::pointer Conexus::IPv4::TCPServer::m_listener [protected] |