mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-23 00:00:06 +01:00
![]() This should get rid of a valgrind uninitialized report when using extpoll, and gives a new way to share the poll loop with external sockets. If a pollfd says it has something, you can just pass it to libwebsocket_serice_fd() whether it is a socket handled by lws or not. If it sees it is a lws socket, the traffic will be handled and pollfd->revents will be zeroed now. If the socket is foreign to lws, it leaves revents alone. So you can see if you should service by checking the pollfd revents after letting lws try to service it. Signed-off-by: Andy Green <andy.green@linaro.org> |
||
---|---|---|
.. | ||
.gitignore | ||
base64-decode.c | ||
client-handshake.c | ||
client-parser.c | ||
client.c | ||
daemonize.c | ||
extension-deflate-frame.c | ||
extension-deflate-frame.h | ||
extension-deflate-stream.c | ||
extension-deflate-stream.h | ||
extension.c | ||
getifaddrs.c | ||
getifaddrs.h | ||
handshake.c | ||
libwebsockets.c | ||
libwebsockets.h | ||
Makefile.am | ||
minilex.c | ||
output.c | ||
parsers.c | ||
private-libwebsockets.h | ||
server-handshake.c | ||
server.c | ||
sha-1.c |