and have been removed. There's a new header management scheme that
handles them in a much more compact way.
+ - libwebsockets_hangup_on_client() is removed. If you want to close the
+ connection you must do so from the user callback and by returning
+ -1 from there.
+
New features
------------
}
/**
- * libwebsockets_hangup_on_client() - Server calls to terminate client
- * connection
- * @context: libwebsockets context
- * @fd: Connection socket descriptor
- */
-
-void
-libwebsockets_hangup_on_client(struct libwebsocket_context *context, int fd)
-{
- struct libwebsocket *wsi = context->lws_lookup[fd];
-
- if (wsi) {
- lwsl_info("close connection at hangup_on_client:\n");
- libwebsocket_close_and_free_session(context,
- wsi, LWS_CLOSE_STATUS_NOSTATUS);
- } else
- close(fd);
-}
-
-
-/**
* libwebsockets_get_peer_addresses() - Get client address information
* @context: Libwebsockets context
* @wsi: Local struct libwebsocket associated with
char *rip, int rip_len);
LWS_EXTERN void
-libwebsockets_hangup_on_client(struct libwebsocket_context *context, int fd);
-
-LWS_EXTERN void
libwebsocket_close_and_free_session(struct libwebsocket_context *context,
struct libwebsocket *wsi, enum lws_close_status);
was built from
</blockquote>
<hr>
-<h2>libwebsockets_hangup_on_client - Server calls to terminate client connection</h2>
-<i>void</i>
-<b>libwebsockets_hangup_on_client</b>
-(<i>struct libwebsocket_context *</i> <b>context</b>,
-<i>int</i> <b>fd</b>)
-<h3>Arguments</h3>
-<dl>
-<dt><b>context</b>
-<dd>libwebsockets context
-<dt><b>fd</b>
-<dd>Connection socket descriptor
-</dl>
-<hr>
<h2>libwebsockets_get_peer_addresses - Get client address information</h2>
<i>void</i>
<b>libwebsockets_get_peer_addresses</b>