#include <wwwapi.h>
Public Types | |
| typedef void(* | UserDataDestructor )(void *userData) |
| typedef bool(* | handler )(WWWconnection &con) |
Public Member Functions | |
| void | setUserData (void *data, UserDataDestructor destructor=NULL) |
| WWWconnection & | append (char const *str) |
| WWWconnection & | append (const void *buf, int len) |
| WWWconnection & | operator<< (char const *str) |
| void | setEncoding (WWWencodingType type) |
| WWWconnection & | operator<< (WWWencodingType type) |
| WWWconnection & | operator<< (int value) |
| WWWconnection & | operator<< (double value) |
| WWWconnection & | operator<< (db_int8 value) |
| WWWconnection & | operator<< (oid_t value) |
| char * | getStub () |
| char * | getAddress () |
| char * | getPeer () |
| bool | terminatedBy (char const *str) const |
| char * | get (char const *name, int n=0) |
| void | addPair (char const *name, char const *value) |
| WWWconnection () | |
| ~WWWconnection () | |
Public Attributes | |
| void * | userData |
| UserDataDestructor | userDataDestructor |
Protected Types | |
| enum | { hash_table_size = 1013 } |
Protected Member Functions | |
| char * | extendBuffer (size_t inc) |
| void | reset () |
| char * | unpack (char *body, size_t body_length) |
Protected Attributes | |
| socket_t * | sock |
| char * | reply_buf |
| size_t | reply_buf_size |
| size_t | reply_buf_used |
| char * | stub |
| char * | address |
| char * | peer |
| WWWconnection * | next |
| WWWencodingType | encoding |
| name_value_pair * | hash_table [hash_table_size] |
| name_value_pair * | free_pairs |
Friends | |
| class | WWWapi |
| class | CGIapi |
| class | QueueManager |
| class | HTTPapi |
Classes | |
| struct | name_value_pair |
| typedef void(* UserDataDestructor)(void *userData) |
| typedef bool(* handler)(WWWconnection &con) |
| WWWconnection | ( | ) |
| ~WWWconnection | ( | ) |
| void setUserData | ( | void * | data, | |
| UserDataDestructor | destructor = NULL | |||
| ) | [inline] |
| WWWconnection & append | ( | char const * | str | ) |
| WWWconnection & append | ( | const void * | buf, | |
| int | len | |||
| ) |
| WWWconnection& operator<< | ( | char const * | str | ) | [inline] |
| void setEncoding | ( | WWWencodingType | type | ) | [inline] |
| WWWconnection& operator<< | ( | WWWencodingType | type | ) | [inline] |
| WWWconnection& operator<< | ( | int | value | ) | [inline] |
| WWWconnection& operator<< | ( | double | value | ) | [inline] |
| WWWconnection& operator<< | ( | db_int8 | value | ) | [inline] |
| WWWconnection& operator<< | ( | oid_t | value | ) | [inline] |
| char* getStub | ( | ) | [inline] |
| char* getAddress | ( | ) | [inline] |
| char* getPeer | ( | ) | [inline] |
| bool terminatedBy | ( | char const * | str | ) | const |
| char * get | ( | char const * | name, | |
| int | n = 0 | |||
| ) |
| void addPair | ( | char const * | name, | |
| char const * | value | |||
| ) |
| char * extendBuffer | ( | size_t | inc | ) | [inline, protected] |
| void reset | ( | ) | [protected] |
| char * unpack | ( | char * | body, | |
| size_t | body_length | |||
| ) | [protected] |
friend class WWWapi [friend] |
friend class CGIapi [friend] |
friend class QueueManager [friend] |
friend class HTTPapi [friend] |
| void* userData |
char* reply_buf [protected] |
size_t reply_buf_size [protected] |
size_t reply_buf_used [protected] |
char* stub [protected] |
char* address [protected] |
char* peer [protected] |
WWWconnection* next [protected] |
WWWencodingType encoding [protected] |
name_value_pair* hash_table[hash_table_size] [protected] |
name_value_pair* free_pairs [protected] |