|
wibble
0.1.28
|
#include <server.h>


Public Member Functions | |
| TCPServer () | |
| virtual | ~TCPServer () |
| int | accept_loop () |
| Loop accepting connections on the socket, until interrupted by a signal in stop_signals. More... | |
| virtual void | handle_client (int sock, const std::string &peer_hostname, const std::string &peer_hostaddr, const std::string &peer_port)=0 |
Public Member Functions inherited from wibble::net::Server | |
| Server () | |
| ~Server () | |
| void | bind (const char *port, const char *host=NULL) |
| void | listen (int backlog=16) |
| void | set_sock_cloexec () |
Public Attributes | |
| std::vector< int > | stop_signals |
Public Attributes inherited from wibble::net::Server | |
| std::string | host |
| std::string | port |
| int | socktype |
| int | sock |
| struct sigaction * | old_signal_actions |
| struct sigaction * | signal_actions |
Protected Member Functions | |
| void | signal_setup () |
| void | signal_install () |
| void | signal_uninstall () |
Static Protected Member Functions | |
| static void | signal_handler (int sig) |
Static Protected Attributes | |
| static int | last_signal = -1 |
| wibble::net::TCPServer::TCPServer | ( | ) |
References stop_signals.
|
virtual |
| int wibble::net::TCPServer::accept_loop | ( | ) |
Loop accepting connections on the socket, until interrupted by a signal in stop_signals.
References handle_client(), wibble::net::Server::host, last_signal, wibble::net::Server::port, signal_install(), signal_setup(), signal_uninstall(), and wibble::net::Server::sock.
|
pure virtual |
Referenced by accept_loop().
|
staticprotected |
References last_signal.
Referenced by signal_setup().
|
protected |
References wibble::str::fmt(), last_signal, wibble::net::Server::old_signal_actions, wibble::net::Server::signal_actions, and stop_signals.
Referenced by accept_loop().
|
protected |
References wibble::net::Server::old_signal_actions, wibble::net::Server::signal_actions, and signal_handler().
Referenced by accept_loop().
|
protected |
References wibble::str::fmt(), wibble::net::Server::old_signal_actions, and stop_signals.
Referenced by accept_loop().
|
staticprotected |
Referenced by accept_loop(), signal_handler(), and signal_install().
| std::vector<int> wibble::net::TCPServer::stop_signals |
Referenced by signal_install(), signal_uninstall(), and TCPServer().
1.8.4