mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
trac82 consistently use CONTEXT_PORT_NO_LISTEN
Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
parent
faeac3c419
commit
67f94599d2
2 changed files with 5 additions and 4 deletions
|
@ -310,7 +310,7 @@ libwebsocket_context_destroy(struct libwebsocket_context *context)
|
|||
* give all extensions a chance to clean up any per-context
|
||||
* allocations they might have made
|
||||
*/
|
||||
if (context->listen_port) {
|
||||
if (context->listen_port != CONTEXT_PORT_NO_LISTEN) {
|
||||
if (lws_ext_callback_for_each_extension_type(context, NULL,
|
||||
LWS_EXT_CALLBACK_SERVER_CONTEXT_DESTRUCT, NULL, 0) < 0)
|
||||
return;
|
||||
|
|
|
@ -913,9 +913,10 @@ struct libwebsocket_extension {
|
|||
/**
|
||||
* struct lws_context_creation_info: parameters to create context with
|
||||
*
|
||||
* @port: Port to listen on... you can use 0 to suppress listening on
|
||||
* any port, that's what you want if you are not running a
|
||||
* websocket server at all but just using it as a client
|
||||
* @port: Port to listen on... you can use CONTEXT_PORT_NO_LISTEN to
|
||||
* suppress listening on any port, that's what you want if you are
|
||||
* not running a websocket server at all but just using it as a
|
||||
* client
|
||||
* @iface: NULL to bind the listen socket to all interfaces, or the
|
||||
* interface name, eg, "eth2"
|
||||
* @protocols: Array of structures listing supported protocols and a protocol-
|
||||
|
|
Loading…
Add table
Reference in a new issue