core-lightning/connectd
Rusty Russell 80a47f1111 lightning_websocketd: simple proxy for websockets.
WebSocket is a bit weird:
1. It starts like an HTTP connection, but they send special headers.
2. We reply with special headers, one of which involves SHA1 of one of theirs.
3. We are then in WebSocket mode, where each frame starts with a 2-20 byte
   header.

We relay data in a simplistic way: if either side sends something, we
read it and relay it synchronously.  That avoids any gratuitous
buffering.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2021-10-22 11:56:30 +02:00
..
test lightning_websocketd: simple proxy for websockets. 2021-10-22 11:56:30 +02:00
connectd.c connectd: listen on ports for which we should spawn a proxy. 2021-10-22 11:56:30 +02:00
connectd.h connectd: clearly differentiate incoming and outgoing paths. 2021-03-25 11:31:58 +10:30
connectd_gossipd_wire.csv
connectd_wire.csv connectd: listen on ports for which we should spawn a proxy. 2021-10-22 11:56:30 +02:00
handshake.c connectd: listen on ports for which we should spawn a proxy. 2021-10-22 11:56:30 +02:00
handshake.h cleanup: remove unneeded includes in header files. 2021-09-17 09:43:22 +09:30
Makefile lightning_websocketd: simple proxy for websockets. 2021-10-22 11:56:30 +02:00
netaddress.c patch websocket-address-support.patch 2021-10-22 11:56:30 +02:00
netaddress.h cleanup: remove unneeded includes in header files. 2021-09-17 09:43:22 +09:30
peer_exchange_initmsg.c cleanup: remove unneeded includes in C files. 2021-09-17 09:43:22 +09:30
peer_exchange_initmsg.h connectd: clearly differentiate incoming and outgoing paths. 2021-03-25 11:31:58 +10:30
sha1.c lightning_websocketd: simple proxy for websockets. 2021-10-22 11:56:30 +02:00
sha1.h lightning_websocketd: simple proxy for websockets. 2021-10-22 11:56:30 +02:00
tor.c cleanup: remove unneeded includes in C files. 2021-09-17 09:43:22 +09:30
tor.h
tor_autoservice.c cleanup: remove unneeded includes in C files. 2021-09-17 09:43:22 +09:30
tor_autoservice.h
websocketd.c lightning_websocketd: simple proxy for websockets. 2021-10-22 11:56:30 +02:00