libonion
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
onion_t Struct Reference

Webserver info.This is information about onion implementation of the generic server. It contains the listening descriptors, the SSL parameters if SSL is enabled... More...

#include <types.h>

Data Fields

int flags
int timeout
 Timeout in milliseconds.
char * username
onion_pollerpoller
onion_listen_point ** listen_points
onion_handlerroot_handler
onion_handlerinternal_error_handler
 Root processing handler for this server.
size_t max_post_size
 Root processing handler for this server.
size_t max_file_size
 Maximum size of post data. This is the sum of posts,.
onion_sessionssessions
 Maximum size of files.
void * client_data
 Storage for sessions.
onion_client_data_free_sigclient_data_free

Detailed Description

Webserver info.

This is information about onion implementation of the generic server. It contains the listening descriptors, the SSL parameters if SSL is enabled...

This is platform specific server IO. Normally POSIX, using TCP/IP.

Field Documentation

void* onion_t::client_data

Storage for sessions.

Referenced by onion_client_data(), onion_free(), and onion_set_client_data().

onion_client_data_free_sig* onion_t::client_data_free
int onion_t::flags
onion_handler* onion_t::internal_error_handler

Root processing handler for this server.

Referenced by onion_free(), onion_new(), onion_request_process(), and onion_set_internal_error_handler().

onion_listen_point** onion_t::listen_points

List of listen_point. Everytime a new listen point adds, it reallocs the full list. Its NULL terminated. If NULL at listen, creates a http at 8080.

Referenced by onion_add_listen_point(), onion_free(), onion_get_listen_point(), onion_listen(), onion_listen_stop(), onion_set_certificate_va(), onion_set_hostname(), and onion_set_port().

size_t onion_t::max_file_size

Maximum size of post data. This is the sum of posts,.

See Also
onion_request_write_post

Referenced by onion_new(), and onion_set_max_file_size().

size_t onion_t::max_post_size

Root processing handler for this server.

Referenced by onion_new(), and onion_set_max_post_size().

onion_poller* onion_t::poller
onion_handler* onion_t::root_handler
onion_sessions* onion_t::sessions
int onion_t::timeout
char* onion_t::username

Referenced by onion_free(), and onion_set_user().


The documentation for this struct was generated from the following file: