#include <server.h>
◆ TCPServer()
wibble::net::TCPServer::TCPServer |
( |
| ) |
|
◆ ~TCPServer()
virtual wibble::net::TCPServer::~TCPServer |
( |
| ) |
|
|
virtual |
◆ accept_loop()
int wibble::net::TCPServer::accept_loop |
( |
| ) |
|
Loop accepting connections on the socket, until interrupted by a signal in stop_signals.
- Returns
- the signal number that stopped the loop
◆ handle_client()
virtual void wibble::net::TCPServer::handle_client |
( |
int |
sock, |
|
|
const std::string & |
peer_hostname, |
|
|
const std::string & |
peer_hostaddr, |
|
|
const std::string & |
peer_port |
|
) |
| |
|
pure virtual |
◆ signal_handler()
static void wibble::net::TCPServer::signal_handler |
( |
int |
sig | ) |
|
|
staticprotected |
◆ signal_install()
void wibble::net::TCPServer::signal_install |
( |
| ) |
|
|
protected |
◆ signal_setup()
void wibble::net::TCPServer::signal_setup |
( |
| ) |
|
|
protected |
◆ signal_uninstall()
void wibble::net::TCPServer::signal_uninstall |
( |
| ) |
|
|
protected |
◆ last_signal
int wibble::net::TCPServer::last_signal |
|
staticprotected |
◆ stop_signals
std::vector<int> wibble::net::TCPServer::stop_signals |
The documentation for this struct was generated from the following file: