Benjamin Sergeant
788c92487c
New connection state for server code + fix OpenSSL double init bug
2019-03-20 18:26:29 -07:00
Benjamin Sergeant
3a77e96a05
Feature/send large message ( #14 )
...
* introduce send fragment
* can pass a fin frame
* can send messages which are a perfect multiple of the chunk size
* set fin only for last fragment
* cleanup
* last fragment should be of type CONTINUATION
* Add simple send and receive programs
* speedups receiving + better way to wait for thing
* receive speedup by using linked list of chunks instead of large array
* document bug
* use chunks to receive data
* trailing spaces
2019-02-20 18:59:07 -08:00
Benjamin Sergeant
50f4fd1115
int -> ssize_t for socker recv and send
2019-01-05 20:53:50 -08:00
Benjamin Sergeant
78d88a8520
openssl cleanup
2019-01-05 11:42:25 -08:00
Benjamin Sergeant
24c9e0abc3
can create a socket from a fd
2018-12-29 21:53:33 -08:00
Benjamin Sergeant
b34eccd749
non blocking dns lookup
2018-12-14 16:28:17 -08:00
Benjamin Sergeant
50b638f7fd
add cancellation support while connecting, to speed up WebSocket::stop
2018-12-09 17:56:20 -08:00
Benjamin Sergeant
5bf1b91528
http upgrade and connections use non blocking sockets
2018-12-09 14:07:40 -08:00
Benjamin Sergeant
c1ed83a005
stopping connection on Linux does not close the socket, which can create problem when re-starting the connection
2018-11-01 17:02:49 -07:00
Benjamin Sergeant
ea81470f4a
more ssl peer validation stuff
2018-10-05 18:45:44 -07:00
Benjamin Sergeant
10ce046b0f
(openssl) verify that the certificate we are getting match the domain we are requesting
2018-10-05 12:08:45 -07:00
Benjamin Sergeant
8f5d83c5c2
(openssl) add sni support
2018-10-01 17:36:21 -07:00
Benjamin Sergeant
9b8d6cedfe
First import
2018-09-27 14:57:19 -07:00