diff options
author | Andy Green <andy@warmcat.com> | 2010-11-11 12:48:13 +0000 |
---|---|---|
committer | Andy Green <andy@warmcat.com> | 2010-11-11 12:48:13 +0000 |
commit | ce510c6bebf17e67f3a5ca0e723c8aa4f4553e6b (patch) | |
tree | 373716b8fbcbc833569567c06484f77189a7204f /libwebsockets-api-doc.html | |
parent | ccbcef3931f0a9436080ef9122c647263e2fc333 (diff) |
add-Sec-WebSocket-Draft-and-protocol-autodetect.patch
Signed-off-by: Andy Green <andy@warmcat.com>
Diffstat (limited to 'libwebsockets-api-doc.html')
-rw-r--r-- | libwebsockets-api-doc.html | 38 |
1 files changed, 1 insertions, 37 deletions
diff --git a/libwebsockets-api-doc.html b/libwebsockets-api-doc.html index 7581b27..5471d3a 100644 --- a/libwebsockets-api-doc.html +++ b/libwebsockets-api-doc.html @@ -2,8 +2,7 @@ <i>int</i> <b>libwebsocket_create_server</b> (<i>int</i> <b>port</b>, -<i>int (*</i><b>callback</b>) <i>(struct libwebsocket *, enum libwebsocket_callback_reasons, void *, void *, size_t)</i>, -<i>int</i> <b>protocol</b>, +<i>int (*</i><b>callback</b>) <i>(struct libwebsocket *, enum libwebsocket_callback_reasons, void *, void *, size_t)</i>, <i>size_t</i> <b>user_area_size</b>, <i>const char *</i> <b>ssl_cert_filepath</b>, <i>const char *</i> <b>ssl_private_key_filepath</b>, @@ -15,8 +14,6 @@ <dd>Port to listen on <dt><b>callback</b> <dd>The callback in user code to perform actual serving -<dt><b>protocol</b> -<dd>Which version of the websockets protocol (currently 76) <dt><b>user_area_size</b> <dd>How much memory to allocate per connection session which will be used by the user application to store @@ -52,39 +49,6 @@ images or whatever over http and dynamic data over websockets all in one place; they're all handled in the user callback. </blockquote> <hr> -<h2>libwebsocket_get_uri - Return the URI path being requested</h2> -<i>const char *</i> -<b>libwebsocket_get_uri</b> -(<i>struct libwebsocket *</i> <b>wsi</b>) -<h3>Arguments</h3> -<dl> -<dt><b>wsi</b> -<dd>Websocket instance -</dl> -<h3>Description</h3> -<blockquote> -The user code can find out the local path being opened from this -call, it's valid on HTTP or established websocket connections. -If the client opened the connection with "http://127.0.0.1/xyz/abc.d" -then this call will return a pointer to "/xyz/abc.d" -</blockquote> -<hr> -<h2>libwebsocket_get_protocol - Return the list of protocols being requested</h2> -<i>const char *</i> -<b>libwebsocket_get_protocol</b> -(<i>struct libwebsocket *</i> <b>wsi</b>) -<h3>Arguments</h3> -<dl> -<dt><b>wsi</b> -<dd>Websocket instance -</dl> -<h3>Description</h3> -<blockquote> -The user code can find out which protocols the client is asking to -work with by calling this. It may return NULL if there was no -protocol header specified. -</blockquote> -<hr> <h2>libwebsocket_write - Apply protocol then write data to client</h2> <i>int</i> <b>libwebsocket_write</b> |