libonion
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Typedefs | Enumerations
types.h File Reference
#include <sys/types.h>

Typedefs

typedef struct onion_dict_t onion_dict
typedef struct onion_handler_t onion_handler
typedef struct onion_url_t onion_url
typedef struct onion_request_t onion_request
typedef struct onion_response_t onion_response
typedef struct onion_server_t onion_server
typedef struct onion_t onion
typedef void( onion_client_data_free_sig )(void *)
typedef struct onion_sessions_t onion_sessions
typedef struct onion_block_t onion_block
typedef struct onion_poller_t onion_poller
typedef struct onion_poller_slot_t onion_poller_slot
typedef struct onion_listen_point_t onion_listen_point
typedef struct onion_websocket_t onion_websocket
typedef struct onion_ptr_list_t onion_ptr_list
typedef enum onion_mode_e onion_mode
typedef enum
onion_connection_status_e 
onion_connection_status
typedef enum onion_ssl_flags_e onion_ssl_flags
typedef enum
onion_ssl_certificate_type_e 
onion_ssl_certificate_type
typedef enum
onion_websocket_opcode_e 
onion_websocket_opcode
typedef onion_connection_status(* onion_handler_handler )(void *privdata, onion_request *req, onion_response *res)
typedef void(* onion_handler_private_data_free )(void *privdata)

Enumerations

enum  onion_mode_e {
  O_ONE = 1, O_ONE_LOOP = 3, O_THREADED = 4, O_DETACH_LISTEN = 8,
  O_SYSTEMD = 0x010, O_POLL = 0x020, O_POOL = 0x024, O_NO_SIGPIPE = 0x040,
  O_NO_SIGTERM = 0x080, O_SSL_AVAILABLE = 0x0100, O_SSL_ENABLED = 0x0200, O_THREADS_AVAILABLE = 0x0400,
  O_THREADS_ENABLED = 0x0800, O_DETACHED = 0x01000, O_LISTENING = 0x02000
}
enum  onion_connection_status_e {
  OCS_NOT_PROCESSED = 0, OCS_NEED_MORE_DATA = 1, OCS_PROCESSED = 2, OCS_CLOSE_CONNECTION = -2,
  OCS_KEEP_ALIVE = 3, OCS_WEBSOCKET = 4, OCS_REQUEST_READY = 5, OCS_INTERNAL_ERROR = -500,
  OCS_NOT_IMPLEMENTED = -501, OCS_FORBIDDEN = -502, OCS_YIELD = -3
}
 The desired connection state of the connection.If <0 it means close connection. May mean also to show something to the client. More...
enum  onion_ssl_flags_e { O_USE_DEV_RANDOM = 0x0100 }
enum  onion_ssl_certificate_type_e {
  O_SSL_NONE = 0, O_SSL_CERTIFICATE_KEY = 1, O_SSL_CERTIFICATE_CRL = 2, O_SSL_CERTIFICATE_TRUST = 3,
  O_SSL_CERTIFICATE_PKCS12 = 4, O_SSL_DER = 0x0100, O_SSL_NO_DEINIT = 0x0200
}

Typedef Documentation

typedef struct onion_t onion
typedef struct onion_block_t onion_block
typedef void( onion_client_data_free_sig)(void *)
typedef struct onion_dict_t onion_dict
typedef enum onion_mode_e onion_mode
typedef struct onion_poller_t onion_poller
typedef struct onion_poller_slot_t onion_poller_slot
typedef struct onion_server_t onion_server
typedef struct onion_url_t onion_url