* client* @iface: VHOST: to bind the listen socket to all interfaces, or the* interface name, eg, "eth2"* If options specifies LWS_SERVER_OPTION_UNIX_SOCK, this member is* the pathname of a UNIX domain socket. you can use the UNIX domain* sockets in abstract namespace, by prepending an @ symbole to the* socket name.* @protocols: VHOST: Array of structures listing supported protocols and a protocol-* specific callback for each one. The list is ended with an* entry that has a callback pointer.* It's not const because we write the owning_server member* @extensions: VHOST: or array of lws_extension structs listing the* extensions this context supports. If you configured with* --without-extensions, you should give here.* @token_limits: CONTEXT: or struct lws_token_limits pointer which is initialized* with a token length limit for each possible WSI_TOKEN_**** @ssl_cert_filepath: VHOST: If libwebsockets was compiled to use ssl, and you want* to listen using SSL, set to the filepath to fetch the* server cert from, otherwise for unencrypted* @ssl_private_key_filepath: VHOST: filepath to private key if wanting SSL mode;* if this is set to but sll_cert_filepath is set, the* OPENSSL_CONTEXT_REQUIRES_PRIVATE_KEY callback is called* to allow setting of the private key directly via openSSL* library calls* @ssl_ca_filepath: VHOST: CA certificate filepath or* @ssl_cipher_list: VHOST: List of valid ciphers to use (eg,* "RC4-MD5:RC4-SHA:AES128-SHA:AES256-SHA:HIGH:!DSS:!a"* or you can leave it as to get "DEFAULT"* @http_proxy_address: VHOST: If non-, attempts to proxy via the given address.* If proxy auth is required, use format* "username:password@server:port"* @http_proxy_port: VHOST: If http_proxy_address was non-, uses this port at* the address* @gid: CONTEXT: group id to change to after setting listen socket, or -1.* @uid: CONTEXT: user id to change to after setting listen socket, or -1.* @options: VHOST + CONTEXT: 0, or LWS_SERVER_OPTION_... bitfields* @user: CONTEXT: optional user pointer that can be recovered via the context* pointer using lws_context_user* @ka_time: CONTEXT: 0 for no keepalive, otherwise Apply this keepalive timeout to* all libwebsocket sockets, client or server* @ka_probes: CONTEXT: if ka_time was nonzero, after the timeout expires how many* times to try to get a response from the peer before giving up* and killing the connection* @ka_interval: CONTEXT: if ka_time was nonzero, how long to wait before each ka_probes* attempt* @provided_client_ssl_ctx: CONTEXT: If non-, swap out libwebsockets ssl* implementation for the one provided by provided_ssl_ctx.* Libwebsockets no longer is responsible for freeing the context* if this option is selected.* @max_http_header_data: CONTEXT: The max amount of header payload that can be handled* in an http request (unrecognized header payload is dropped)* @max_http_header_pool: CONTEXT: The max number of connections with http headers that* can be processed simultaneously (the corresponding memory is* allocated for the lifetime of the context). If the pool is* busy new incoming connections must wait for accept until one* becomes free.* @count_threads: CONTEXT: how many contexts to create in an array, 0 = 1* @fd_limit_per_thread: CONTEXT: nonzero means restrict each service thread to this* many fds, 0 means the default which is divide the process fd* limit by the number of threads.* @timeout_secs: VHOST: various processes involving network roundtrips in the* library are protected from hanging forever by timeouts. If* nonzero, this member lets you set the timeout used in seconds.* Otherwise a default timeout is used.* @ecdh_curve: VHOST: if , defaults to initializing server with "prime256v1"* @vhost_name: VHOST: name of vhost, must match external DNS name used to* access the site, like "warmcat.com" as it's used to match* Host: header and / or SNI name for SSL.* @plugin_dirs: CONTEXT: , or -terminated array of directories to* scan for lws protocol plugins at context creation time* @pvo: VHOST: pointer to optional linked list of per-vhost* options made accessible to protocols* @keepalive_timeout: VHOST: (default = 0 = 60s) seconds to allow remote
推荐阅读
- 一文详解计算机网络IP地址和子网掩码
- 还是4G香?中国移动突然承认 中国移动4g网络
- 应用题及答案(小学1
- 拨号网络PPPoE的地址转换 pppoe 拨号软件
- 中兴机顶盒的刷机教程 中兴网络机顶盒密码
- 适合搬砖的网络游戏有哪些 十大搬砖网游在家挣钱2022
- 谷德设计网?建筑上有问题上哪些网站可以得到比较专业的回答?
- arpanet属于几代网络?ARPANET这是什么意思?
- 电影|再刷《长安十二时辰》 问几个问题 谁能回答
- 人人阅读器4.1破解 人人阅读器能在没有网络的环境下使用吗?
