![]() |
libwebsockets
Lightweight C library for HTML5 websockets
|
#include <libwebsockets.h>
Data Fields | |
struct lws_context * | context |
const char * | address |
int | port |
int | ssl_connection |
const char * | path |
const char * | host |
const char * | origin |
const char * | protocol |
int | ietf_version_or_minus_one |
void * | userdata |
const struct lws_extension * | client_exts |
const char * | method |
struct lws * | parent_wsi |
const char * | uri_replace_from |
const char * | uri_replace_to |
struct lws_vhost * | vhost |
void * | _unused [4] |
struct lws_client_connect_info - parameters to connect with when using lws_client_connect_via_info()
void* lws_client_connect_info::_unused[4] |
dummy
const char* lws_client_connect_info::address |
remote address to connect to
const struct lws_extension* lws_client_connect_info::client_exts |
array of extensions that may be used on connection
struct lws_context* lws_client_connect_info::context |
lws context to create connection in
const char* lws_client_connect_info::host |
content of host header
int lws_client_connect_info::ietf_version_or_minus_one |
deprecated: currently leave at 0 or -1
const char* lws_client_connect_info::method |
if non-NULL, do this http method instead of ws[s] upgrade. use "GET" to be a simple http client connection
const char* lws_client_connect_info::origin |
content of origin header
struct lws* lws_client_connect_info::parent_wsi |
if another wsi is responsible for this connection, give it here. this is used to make sure if the parent closes so do any child connections first.
const char* lws_client_connect_info::path |
uri path
int lws_client_connect_info::port |
remote port to connect to
const char* lws_client_connect_info::protocol |
list of ws protocols we could accept
int lws_client_connect_info::ssl_connection |
nonzero for ssl
const char* lws_client_connect_info::uri_replace_from |
if non-NULL, when this string is found in URIs in text/html content-encoding, it's replaced with uri_replace_to
const char* lws_client_connect_info::uri_replace_to |
see uri_replace_from
void* lws_client_connect_info::userdata |
if non-NULL, use this as wsi user_data instead of malloc it
struct lws_vhost* lws_client_connect_info::vhost |
vhost to bind to (used to determine related SSL_CTX)