1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-16 00:00:07 +01:00
libwebsockets/lib
Andy Green 1fb95e8084 close add api to control sent close frame contents
This adds an api lws_close_reason() which lets you control what will
be sent in the close frame when the connection is closed by returning
nonzero from the user callback.

The test server demo is extended to prove it works in both directions.

With this, we should have nice close support.

https://github.com/warmcat/libwebsockets/issues/196

Signed-off-by: Andy Green <andy.green@linaro.org>
2015-12-26 17:20:34 +08:00
..
.gitignore Ignoring linux build files 2013-01-09 15:46:11 +08:00
alloc.c Subject: [PATCH] Add custom allocator support using the realloc() interface 2014-12-05 07:25:24 +08:00
base64-decode.c mbed3 warning cleaning 2015-11-14 16:31:01 +08:00
client-handshake.c http header malloc pool implement pool 2015-12-25 14:34:20 +08:00
client-parser.c close add api to control sent close frame contents 2015-12-26 17:20:34 +08:00
client.c deprecate LWS_SEND_BUFFER_POST_PADDING 2015-12-26 12:03:06 +08:00
context.c http header malloc pool implement pool 2015-12-25 14:34:20 +08:00
daemonize.c clean internal refactor 2015-12-17 17:03:59 +08:00
extension-deflate-frame.c deprecate LWS_SEND_BUFFER_POST_PADDING 2015-12-26 12:03:06 +08:00
extension-deflate-frame.h whitespace trailing mass cleanout 2015-12-14 08:52:03 +08:00
extension-deflate-stream.c whitespace trailing mass cleanout 2015-12-14 08:52:03 +08:00
extension-deflate-stream.h whitespace trailing mass cleanout 2015-12-14 08:52:03 +08:00
extension.c lws_get_context not _ctx 2015-12-17 18:25:25 +08:00
getifaddrs.c whitespace trailing mass cleanout 2015-12-14 08:52:03 +08:00
getifaddrs.h Use LWS_HAVE_ instead of just HAVE_ 2015-10-12 09:53:17 +08:00
handshake.c clean internal refactor 2015-12-17 17:03:59 +08:00
header.c lws_get_context not _ctx 2015-12-17 18:25:25 +08:00
hpack.c http header malloc pool implement pool 2015-12-25 14:34:20 +08:00
http2.c clean internal refactor 2015-12-17 17:03:59 +08:00
huftable.h http2 hpack basic decode ok including huff 2014-10-12 08:38:16 +08:00
lextable-strings.h whitespace trailing mass cleanout 2015-12-14 08:52:03 +08:00
lextable.h Add PATCH, PUT, DELETE methods 2015-01-26 11:25:13 +08:00
libev.c lws_get_context not _ctx 2015-12-17 18:25:25 +08:00
libwebsockets.c close add api to control sent close frame contents 2015-12-26 17:20:34 +08:00
libwebsockets.h close add api to control sent close frame contents 2015-12-26 17:20:34 +08:00
lws-plat-mbed3.c clean internal refactor 2015-12-17 17:03:59 +08:00
lws-plat-mbed3.cpp lws_get_context not _ctx 2015-12-17 18:25:25 +08:00
lws-plat-unix.c Recognize Debian GNU/kFreeBSD as FreeBSD-ish. 2015-12-25 21:15:21 +08:00
lws-plat-win.c rearrange private struct packing 2 2015-12-26 08:56:58 +08:00
minihuf.c whitespace trailing mass cleanout 2015-12-14 08:52:03 +08:00
minilex.c whitespace trailing mass cleanout 2015-12-14 08:52:03 +08:00
output.c close add api to control sent close frame contents 2015-12-26 17:20:34 +08:00
parsers.c close add callback to get peer close reason 2015-12-26 15:47:06 +08:00
pollfd.c detect service tid once and use wsi with valid context to do it 2015-12-24 13:00:54 +08:00
private-libwebsockets.h close add api to control sent close frame contents 2015-12-26 17:20:34 +08:00
server-handshake.c server check cb return during establish 2015-12-18 00:56:31 +08:00
server.c deprecate LWS_SEND_BUFFER_POST_PADDING 2015-12-26 12:03:06 +08:00
service.c close add callback to get peer close reason 2015-12-26 15:47:06 +08:00
sha-1.c clean reduce windows build warnings 2015-12-06 08:00:03 +08:00
ssl-http2.c clean internal refactor 2015-12-17 17:03:59 +08:00
ssl.c lws_get_context not _ctx 2015-12-17 18:25:25 +08:00