kore/src
Joris Vink f867882f43 Add websocket support to Kore.
Introduces a few new api functions:

- kore_websocket_handshake(struct http_request *):
	Performs the handshake on an HTTP request (coming from page handler)

- kore_websocket_send(struct connection *, u_int8_t, void *, size_t):
	Sends data to a websocket connection.

- kore_websocket_broadcast(struct connection *, u_int8_t, void *, size_t, int):
	Broadcast the given websocket op and data to all connected
	websocket clients on the worker. Note that as of right now
	the WEBSOCKET_BROADCAST_GLOBAL scope option does not work
	yet and messages broadcasted will be restricted to workers
	only.

- kore_worker_websocket_broadcast(struct connection *, void *, void *):
	Backend function used by kore_websocket_broadcast().
	Could prove useful for developers to have access to.

A simple example is given under examples/websocket.

Known issues:
	Kore does not support PING or CONT frames just yet.
2014-11-24 11:08:34 +01:00
..
accesslog.c bump copyright years 2014-10-14 16:18:23 +02:00
auth.c Rename the two functions used to read/set headers. 2014-08-05 14:26:31 +02:00
bsd.c Allow workers to bind to specific CPUs on FreeBSD. 2014-10-26 22:41:55 +01:00
buf.c bump copyright years 2014-10-14 16:18:23 +02:00
cli.c Properly order linker arguments. 2014-11-19 14:20:31 +01:00
config.c Add websocket support to Kore. 2014-11-24 11:08:34 +01:00
connection.c Add websocket support to Kore. 2014-11-24 11:08:34 +01:00
domain.c Make sure we can still compile with BENCHMARK=1 2014-10-18 02:38:21 +02:00
http.c Add websocket support to Kore. 2014-11-24 11:08:34 +01:00
kore.c Remove kore_cb and its related settings. 2014-08-04 19:54:32 +02:00
linux.c Rework net, worker and some http internals. 2014-10-22 21:16:49 +02:00
mem.c bump copyright years 2014-10-14 16:18:23 +02:00
module.c bump copyright years 2014-10-14 16:18:23 +02:00
net.c Add websocket support to Kore. 2014-11-24 11:08:34 +01:00
pgsql.c Allow 0 parameters for kore_pgsql_query_params() 2014-10-12 01:17:35 +02:00
pool.c bump copyright years 2014-10-14 16:18:23 +02:00
spdy.c Rework net, worker and some http internals. 2014-10-22 21:16:49 +02:00
tasks.c Attach tasks/pgsqls to http_requests once more. 2014-08-14 22:05:34 +02:00
utils.c No need to set l here 2014-09-19 15:01:45 +02:00
validator.c bump copyright years 2014-10-14 16:18:23 +02:00
websocket.c Add websocket support to Kore. 2014-11-24 11:08:34 +01:00
worker.c Add websocket support to Kore. 2014-11-24 11:08:34 +01:00
zlib_dict.c properly deflate/inflate of name/value blocks. and add ability 2013-05-01 00:35:33 +02:00