mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
Fix documentation for LWS_CALLBACK_FILTER_NETWORK_CONNECTION
At the time callback LWS_CALLBACK_FILTER_NETWORK_CONNECTION is called, there is no client connection information yet, so the parameter wsi still pointing to the main server connection. Add an description of this behavior to the documentation.
This commit is contained in:
parent
eca0e4913d
commit
22f7150b56
1 changed files with 6 additions and 5 deletions
|
@ -547,11 +547,12 @@ struct libwebsocket_extension;
|
|||
* the server at network level; the connection is accepted but then
|
||||
* passed to this callback to decide whether to hang up immediately
|
||||
* or not, based on the client IP. @in contains the connection
|
||||
* socket's descriptor. Return non-zero to terminate
|
||||
* the connection before sending or receiving anything.
|
||||
* Because this happens immediately after the network connection
|
||||
* from the client, there's no websocket protocol selected yet so
|
||||
* this callback is issued only to protocol 0.
|
||||
* socket's descriptor. Since the client connection information is
|
||||
* not available yet, @wsi still pointing to the main server socket.
|
||||
* Return non-zero to terminate the connection before sending or
|
||||
* receiving anything. Because this happens immediately after the
|
||||
* network connection from the client, there's no websocket protocol
|
||||
* selected yet so this callback is issued only to protocol 0.
|
||||
*
|
||||
* LWS_CALLBACK_FILTER_HTTP_CONNECTION: called when the request has
|
||||
* been received and parsed from the client, but the response is
|
||||
|
|
Loading…
Add table
Reference in a new issue