canonical libwebsockets.org websocket library
Find a file
Andy Green a7109e6ebf valgrind introduce protocol init and destroy user callbacks
To get a clean bill of health from valgrind, we have to have a way to
inform the user code that we're going down and it should free everything
it is holding that was malloc'd.

This patch introduces LWS_CALLBACK_PROTOCOL_DESTROY which each protocol
gets when the context is being destroyed and no more activity will come
after that call.  They can get rid of everything there.

To match it, LWS_CALLBACK_PROTOCOL_INIT is introduced which would allow
one-time init per protocol too.

Signed-off-by: Andy Green <andy.green@linaro.org>
2013-02-11 12:05:54 +08:00
cmake CMake support + fixed windows build. 2013-02-06 15:49:12 +09:00
lib valgrind introduce protocol init and destroy user callbacks 2013-02-11 12:05:54 +08:00
m4 add empty m4 dir as workaround for autoreconf issue 2013-01-15 21:56:12 +08:00
scripts refactor-into-dirs.patch 2010-11-01 09:12:17 +00:00
test-server valgrind introduce protocol init and destroy user callbacks 2013-02-11 12:05:54 +08:00
win32port remove deprecated vcxproj 2013-02-07 20:25:28 +08:00
.gitignore add static stack analysis 2013-02-10 10:49:15 +08:00
autogen.sh use autogen.sh 2012-10-06 15:17:01 +08:00
changelog valgrind introduce protocol init and destroy user callbacks 2013-02-11 12:05:54 +08:00
CMakeLists.txt Added build instructions for CMake. 2013-02-07 20:24:19 +08:00
config.h.cmake Added some minor changes to CMake build file. 2013-02-06 15:49:12 +09:00
configure.ac stop O2 override 2013-02-11 09:31:43 +08:00
COPYING add-COPYING-lgpl-2.1.patch 2010-11-08 17:12:19 +00:00
INSTALL add-INSTALL.patch 2010-11-12 13:11:50 +00:00
libwebsockets-api-doc.html valgrind introduce protocol init and destroy user callbacks 2013-02-11 12:05:54 +08:00
libwebsockets.pc.in add pkg-config file libwebsockets.pc 2012-10-19 18:26:22 +08:00
libwebsockets.spec uplevel-rpm-spec-to-include-new-extpoll-sample.patch 2011-02-13 09:08:11 +00:00
LICENSE add static linking exception to LICENSE 2013-02-07 23:44:21 +08:00
Makefile.am introduce library version plus git hash 2013-02-01 10:50:15 +08:00
README add README 2013-02-06 16:07:27 +09:00
README.build replace per header mallocs with single malloc 3 level struct 2013-02-11 11:10:57 +08:00
README.coding dont try set per socket keepalive timing on bsds 2013-02-10 09:39:47 +08:00
README.test-apps introduce test echo 2013-01-30 12:28:44 +08:00

This is the libwebsockets C library for lightweight websocket clients and
servers.  For support, visit

 http://libwebsockets.org

and consider joining the project mailing list at

 http://ml.libwebsockets.org/mailman/listinfo/libwebsockets

You can get the latest version of the library from git

http://git.libwebsockets.org
https://github.com/warmcat/libwebsockets

for more information:

README.build      - information on building the library
README.coding     - information for writing code using the library
README.test-apps  - information about the test apps built with the library