libonion
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions
HTTP. Specific bits for http listen points. Mostly used internally.

Data Structures

struct  onion_http_t

Functions

onion_listen_pointonion_http_t::onion_http_new ()
 Creates an HTTP listen point.
static ssize_t onion_http_t::onion_http_read (onion_request *con, char *data, size_t len)
 Reads data from the http connection.
int onion_http_t::onion_http_read_ready (onion_request *con)
 HTTP client has data ready to be readen.
ssize_t onion_http_t::onion_http_write (onion_request *con, const char *data, size_t len)
 Write dat to the HTTP client.

Detailed Description

Function Documentation

onion_listen_point * onion_http_new ( )
static ssize_t onion_http_read ( onion_request con,
char *  data,
size_t  len 
)

Reads data from the http connection.

References onion_request_t::connection, and onion_request_t::fd.

Referenced by onion_http_t::onion_http_new().

int onion_http_read_ready ( onion_request con)
ssize_t onion_http_write ( onion_request con,
const char *  data,
size_t  len 
)