#include <wwwapi.h>

Public Member Functions | |
| WWWapi (dbDatabase &db, int n_handlers, dispatcher *dispatch_table) | |
| virtual | ~WWWapi () |
| bool | open (char const *socket_address="localhost:80", socket_t::socket_domain domain=socket_t::sock_global_domain, int listen_queue=DEFAULT_LISTEN_QUEUE_SIZE) |
| virtual bool | serve (WWWconnection &con)=0 |
| bool | connect (WWWconnection &con) |
| void | cancel () |
| void | close () |
Protected Types | |
| enum | { hash_table_size = 113 } |
Protected Member Functions | |
| bool | dispatch (WWWconnection &con, char *page) |
Protected Attributes | |
| socket_t * | sock |
| bool | canceled |
| char * | address |
| dbDatabase & | db |
| dispatcher * | hash_table [hash_table_size] |
Classes | |
| struct | dispatcher |
| WWWapi | ( | dbDatabase & | db, | |
| int | n_handlers, | |||
| dispatcher * | dispatch_table | |||
| ) |
| ~WWWapi | ( | ) |
| bool dispatch | ( | WWWconnection & | con, | |
| char * | page | |||
| ) | [protected] |
| bool open | ( | char const * | socket_address = "localhost:80", |
|
| socket_t::socket_domain | domain = socket_t::sock_global_domain, |
|||
| int | listen_queue = DEFAULT_LISTEN_QUEUE_SIZE | |||
| ) |
| virtual bool serve | ( | WWWconnection & | con | ) | [pure virtual] |
| bool connect | ( | WWWconnection & | con | ) |
| void cancel | ( | ) |
| void close | ( | ) |
bool canceled [protected] |
char* address [protected] |
dbDatabase& db [protected] |
dispatcher* hash_table[hash_table_size] [protected] |