Lines Matching +full:ipv4 +full:- +full:simple +full:- +full:service +full:- +full:config
2 * libwebsockets - small server side websockets and web server implementation
4 * Copyright (C) 2010 - 2021 Andy Green <andy@warmcat.com>
25 /*! \defgroup context-and-vhost context and vhost related functions
55 /**< (VH) Allow non-SSL (plaintext) connections on the same
71 /**< (VH) Check UT-8 correctness */
85 * http://x.com:443 -> https://x.com
109 /**< For backwards-compatibility reasons, by default
120 * the connection. If they are NULL, for backwards-compatibility the
121 * connection is bound to "raw-skt" role, and in order of priority:
138 * If those explicit user-controlled names are NULL, for backwards-
139 * compatibility the connection is bound to "raw-skt" role, and in order
150 * have multiple service threads. Linux only.
216 /**< (VH) Tell the vhost to treat half-closed remote clients as
237 /**< (CTX) Use sd-event loop */
246 /****** add new things just above ---^ ******/
262 /** struct lws_context_creation_info - parameters to create context and /or vhost with
266 * context-creation time using the info from this struct.
282 * protocol-specific callback for each one. The list is ended with an
296 /**< VHOST: If non-NULL, attempts to proxy via the given address.
300 /**< VHOST: pointer to optional linked list of per-vhost
311 /**< VHOST: pointer to optional linked list of per-vhost
323 /**< VHOST: If non-NULL, when asked to serve a non-existent file,
329 * writing a server but you are using \ref sock-adopt instead of the
330 * built-in listener.
337 /**< VHOST: If http_proxy_address was non-NULL, uses this port */
416 * "RC4-MD5:RC4-SHA:AES128-SHA:AES256-SHA:HIGH:!DSS:!aNULL"
438 * \p ssl_cert_filepath or \p server_ssl_cert_mem should be non-NULL. */
443 * should be non-NULL. */
447 * of \p ssl_ca_filepath or \p server_ssl_ca_mem should be non-NULL. */
473 /**< CONTEXT: If non-NULL, default list of advertised alpn, comma-
476 * VHOST: If non-NULL, per-vhost list of advertised alpn, comma-
511 * "RC4-MD5:RC4-SHA:AES128-SHA:AES256-SHA:HIGH:!DSS:!aNULL"
537 /**< CONTEXT: If non-null, swap out libwebsockets ssl
601 * or -1. See also .username below. */
604 * or -1. See also .groupname below. */
619 /**< CONTEXT: nonzero means restrict each service thread to this
624 * number of service threads is less than the process ulimit, then lws
639 * context-specific logging
643 /**< CONTEXT: NULL, or NULL-terminated array of directories to
657 * various service related features including file serving, it
673 /**< VHOST: If non-NULL, attempts to proxy via the given address.
677 /**< VHOST: If socks_proxy_address was non-NULL, uses this port
700 * each service thread, and deal with closing the loops
703 * Non-NULL means it points to an array of external
705 * each service thread. In the default case of 1 service
715 /**< CONTEXT: if non-NULL, at the end of context destroy processing,
732 * "raw-skt".
749 const char *username; /**< CONTEXT: string username for post-init
751 const char *groupname; /**< CONTEXT: string groupname for post-init
758 /**< CONTEXT: hook up lws_system_ apis to system-specific
773 * in a linked-list of streamtype policies prepared by user code */
789 * network interface address (not name, it's ambiguous for ipv4/6) to
862 /**< CONTEXT: non-SS policy metrics policies */
879 /**< CONTEXT: If non-NULL, override event library selection so it uses
898 /**< CONTEXT: NULL to use the default, process-scope logging context,
916 /* Add new things just above here ---^
928 * lws_create_context() - Create the websocket handler
937 * using the information in the vhost-related members, for compatibility.
954 * The server created is a simple http server by default; part of the
966 * lws_context_destroy() - Destroy the websocket context
979 * lws_context_deprecate() - Deprecate the websocket context
1007 * lws_set_proxy() - Setups proxy to lws_context.
1012 * Returns -1 if proxy is NULL or has incorrect format.
1027 * lws_set_socks() - Setup socks to lws_context.
1032 * Returns -1 if socks is NULL or has incorrect format.
1049 * lws_create_vhost() - Create a vhost (virtual server context)
1053 * This function creates a virtual server (vhost) using the vhost-related
1062 * lws_vhost_destroy() - Destroy a vhost (virtual server context)
1075 * there are multiple service threads. At the point the vhost itself if
1083 * lwsws_get_config_globals() - Parse a JSON server config file
1085 * \param d: filepath of the config file
1086 * \param config_strings: storage for the config strings extracted from JSON,
1101 * lwsws_get_config_vhosts() - Create vhosts from a JSON server config file
1104 * \param d: filepath of the config file
1105 * \param config_strings: storage for the config strings extracted from JSON,
1121 * lws_get_vhost() - return the vhost a wsi belongs to
1129 * lws_get_vhost_name() - returns the name of a vhost
1137 * lws_get_vhost_by_name() - returns the vhost with the requested name, or NULL
1148 * lws_get_vhost_port() - returns the port a vhost listens on, or -1
1156 * lws_get_vhost_user() - returns the user pointer for the vhost
1164 * lws_get_vhost_iface() - returns the binding for the vhost listen socket
1172 * lws_json_dump_vhost() - describe vhost state and stats in JSON
1182 * lws_json_dump_context() - describe context state and stats in JSON
1187 * \param hide_vhosts: nonzero to not provide per-vhost mount etc information
1196 * lws_vhost_user() - get the user data associated with the vhost
1207 * lws_context_user() - get the user data associated with the context
1222 * lws_context_is_being_destroyed() - find out if context is being destroyed
1239 /*! \defgroup vhost-mounts Vhost mounts and options
1240 * \ingroup context-and-vhost-creation
1245 /** struct lws_protocol_vhost_options - linked list of per-vhost protocol
1248 * This provides a general way to attach a linked-list of name=value pairs,
1249 * which can also have an optional child link-list using the options member.
1253 …const struct lws_protocol_vhost_options *options; /**< child linked-list of more options for this …
1298 /**<"protocol-name" to handle mount */
1301 /**< optional linked-list of cgi options. These are created
1305 /**< optional linked-list of mimetype mappings */
1307 /**< optional linked-list of files to be interpreted */
1312 /**< max-age for reuse of client cache of files, seconds */
1326 /* Add new things just above here ---^