adoption: make union for socket and file fds
authorAndy Green <andy@warmcat.com>
Mon, 27 Feb 2017 04:55:56 +0000 (12:55 +0800)
committerAndy Green <andy@warmcat.com>
Wed, 1 Mar 2017 02:01:53 +0000 (10:01 +0800)
commitbe8d791b5e5e601207011c0454371dcb97e28b53
tree04049bb73bcf7f2058b02e1ac996f152ebdc9abd
parent8bb3dffc86387c02ac5d7d0ebfc8378b4c51170a
adoption: make union for socket and file fds

This lets lws support adopting raw file FDs and raw socket fds.

A test plugin creates a FIFO and prints data sent on it, using
the lws event loop.
20 files changed:
CMakeLists.txt
lib/client-handshake.c
lib/client.c
lib/libev.c
lib/libuv.c
lib/libwebsockets.c
lib/libwebsockets.h
lib/lws-plat-esp32.c
lib/lws-plat-esp8266.c
lib/lws-plat-optee.c
lib/lws-plat-unix.c
lib/lws-plat-win.c
lib/output.c
lib/pollfd.c
lib/private-libwebsockets.h
lib/server.c
lib/service.c
lib/ssl-client.c
lib/ssl.c
plugins/protocol_lws_raw_test.c [new file with mode: 0644]