1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

trac 4 correct libebsocket_service_fd

Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
Andy Green 2013-01-22 12:32:11 +08:00
parent ab40eaa8db
commit 75006171d7
2 changed files with 10 additions and 6 deletions

View file

@ -674,9 +674,11 @@ libwebsocket_service_timeout_check(struct libwebsocket_context *context,
* @pollfd: The pollfd entry describing the socket fd and which events
* happened.
*
* This function closes any active connections and then frees the
* context. After calling this, any further use of the context is
* undefined.
* This function takes a pollfd that has POLLIN or POLLOUT activity and
* services it according to the state of the associated struct libwebsocket.
*
* The one call deals with all "service" that might happen on a socket
* including listen accepts, http files as well as websocket protocol.
*/
int

View file

@ -55,9 +55,11 @@ happened.
</dl>
<h3>Description</h3>
<blockquote>
This function closes any active connections and then frees the
context. After calling this, any further use of the context is
undefined.
This function takes a pollfd that has POLLIN or POLLOUT activity and
services it according to the state of the associated struct libwebsocket.
<p>
The one call deals with all "service" that might happen on a socket
including listen accepts, http files as well as websocket protocol.
</blockquote>
<hr>
<h2>libwebsocket_context_destroy - Destroy the websocket context</h2>