WWWapi Class Reference

#include <wwwapi.h>

Inheritance diagram for WWWapi:

CGIapi HTTPapi

List of all members.

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_tsock
bool canceled
char * address
dbDatabasedb
dispatcherhash_table [hash_table_size]

Classes

struct  dispatcher


Member Enumeration Documentation

anonymous enum [protected]

Enumerator:
hash_table_size 


Constructor & Destructor Documentation

WWWapi ( dbDatabase db,
int  n_handlers,
dispatcher dispatch_table 
)

~WWWapi (  ) 


Member Function Documentation

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]

Implemented in CGIapi, and HTTPapi.

bool connect ( WWWconnection con  ) 

void cancel (  ) 

void close (  ) 


Member Data Documentation

socket_t* sock [protected]

bool canceled [protected]

char* address [protected]

dbDatabase& db [protected]

dispatcher* hash_table[hash_table_size] [protected]


Online Library Docs

sipXecs home page

Version 4.2.1-018930 2010-07-31T01:13:23 build16 abuild