This website requires JavaScript.
06177afd6a
unittest starts a server
Benjamin Sergeant
2019-01-01 16:34:05 -08:00
dcfdcc3e1b
unittest starts a server
Benjamin Sergeant
2019-01-01 16:34:05 -08:00
e5937638d4
crash when server failed to start
Benjamin Sergeant
2019-01-01 16:14:46 -08:00
b13fee16c1
crash when server failed to start
Benjamin Sergeant
2019-01-01 16:14:46 -08:00
7c4f14f941
thread accepting connections can be cancelled/stopped externally
Benjamin Sergeant
2019-01-01 16:11:27 -08:00
9a7767ecb1
thread accepting connections can be cancelled/stopped externally
Benjamin Sergeant
2019-01-01 16:11:27 -08:00
ead54d6c37
listen job run in its own thread, non blocking
Benjamin Sergeant
2019-01-01 14:52:14 -08:00
9b82a33aff
listen job run in its own thread, non blocking
Benjamin Sergeant
2019-01-01 14:52:14 -08:00
b749f3c724
(nitpick) reformat
Benjamin Sergeant
2019-01-01 14:29:57 -08:00
70ef77a5d5
(nitpick) reformat
Benjamin Sergeant
2019-01-01 14:29:57 -08:00
d279aecb87
cleanup / remove printf, add mutex, remove hardcoded values, can pass in a binding host
Benjamin Sergeant
2019-01-01 14:28:41 -08:00
77903e9d90
cleanup / remove printf, add mutex, remove hardcoded values, can pass in a binding host
Benjamin Sergeant
2019-01-01 14:28:41 -08:00
67de0fc8da
use shared_ptr
Benjamin Sergeant
2019-01-01 13:53:13 -08:00
de66a87a7c
use shared_ptr
Benjamin Sergeant
2019-01-01 13:53:13 -08:00
8ed2399517
unittest pass
Benjamin Sergeant
2019-01-01 13:47:25 -08:00
5ea2028c22
unittest pass
Benjamin Sergeant
2019-01-01 13:47:25 -08:00
cf340011e2
record workers in a map instead of a vector
Benjamin Sergeant
2018-12-31 14:52:59 -08:00
58a68ec0be
record workers in a map instead of a vector
Benjamin Sergeant
2018-12-31 14:52:59 -08:00
ec2ad37860
add a print statement when the connection is closed / still need to terminate server thread
Benjamin Sergeant
2018-12-31 12:47:42 -08:00
a39278f7be
add a print statement when the connection is closed / still need to terminate server thread
Benjamin Sergeant
2018-12-31 12:47:42 -08:00
3443e82812
more cleanup to propagate server connection error and let onOpen callback execute
Benjamin Sergeant
2018-12-31 12:43:47 -08:00
f8373dc666
more cleanup to propagate server connection error and let onOpen callback execute
Benjamin Sergeant
2018-12-31 12:43:47 -08:00
63138507d6
only bind to localhost
Benjamin Sergeant
2018-12-31 11:48:49 -08:00
3febc2431d
only bind to localhost
Benjamin Sergeant
2018-12-31 11:48:49 -08:00
b2eb07db14
server code has a callback that takes a websocket
Benjamin Sergeant
2018-12-30 22:12:13 -08:00
0bf736831a
server code has a callback that takes a websocket
Benjamin Sergeant
2018-12-30 22:12:13 -08:00
379a845166
cleanup / use a websocket instead of raw websockettransport
Benjamin Sergeant
2018-12-30 22:00:49 -08:00
7710bf793f
cleanup / use a websocket instead of raw websockettransport
Benjamin Sergeant
2018-12-30 22:00:49 -08:00
266cf93584
can accept multiple connection / server can send data back to client
Benjamin Sergeant
2018-12-30 21:16:05 -08:00
a6a43bd361
can accept multiple connection / server can send data back to client
Benjamin Sergeant
2018-12-30 21:16:05 -08:00
0ee71e9a09
proof of concept server implementation
Benjamin Sergeant
2018-12-29 23:15:27 -08:00
a39209a895
proof of concept server implementation
Benjamin Sergeant
2018-12-29 23:15:27 -08:00
ea07afcc0b
can create a socket from a fd
Benjamin Sergeant
2018-12-29 21:53:33 -08:00
24c9e0abc3
can create a socket from a fd
Benjamin Sergeant
2018-12-29 21:53:33 -08:00
43cd6d34ca
add simple unittest
Benjamin Sergeant
2018-12-29 18:33:15 -08:00
9cc324d78d
add simple unittest
Benjamin Sergeant
2018-12-29 18:33:15 -08:00
3b67032adb
add missing src files (IXSetThreadName.{cpp,h}) ...
Benjamin Sergeant
2018-12-23 14:19:30 -08:00
8574beceb1
add missing src files (IXSetThreadName.{cpp,h}) ...
Benjamin Sergeant
2018-12-23 14:19:30 -08:00
2d46a0605b
fix warning: field '_eventCallback' will be initialized after field '_publishMode'
Benjamin Sergeant
2018-12-23 14:18:53 -08:00
0349b7f1c7
fix warning: field '_eventCallback' will be initialized after field '_publishMode'
Benjamin Sergeant
2018-12-23 14:18:53 -08:00
ba54664748
Fix warning: field '_done' will be initialized after field '_wait' [-Wreorder] _done(false),
Benjamin Sergeant
2018-12-23 14:17:30 -08:00
ce1ba20db5
Fix warning: field '_done' will be initialized after field '_wait' [-Wreorder] _done(false),
Benjamin Sergeant
2018-12-23 14:17:30 -08:00
a79f4c10a1
set thread name / rename example
Benjamin Sergeant
2018-12-23 14:14:38 -08:00
395d823f41
set thread name / rename example
Benjamin Sergeant
2018-12-23 14:14:38 -08:00
bd04b28b9e
async dns lookup fix
Benjamin Sergeant
2018-12-14 17:49:42 -08:00
6884f9f74f
async dns lookup fix
Benjamin Sergeant
2018-12-14 17:49:42 -08:00
cbadecab33
non blocking dns lookup
Benjamin Sergeant
2018-12-14 16:28:11 -08:00
b34eccd749
non blocking dns lookup
Benjamin Sergeant
2018-12-14 16:28:11 -08:00
8c079787f0
add cancellation support while connecting, to speed up WebSocket::stop
Benjamin Sergeant
2018-12-09 17:56:20 -08:00
50b638f7fd
add cancellation support while connecting, to speed up WebSocket::stop
Benjamin Sergeant
2018-12-09 17:56:20 -08:00
62528e6a0b
http upgrade and connections use non blocking sockets
Benjamin Sergeant
2018-12-09 14:07:40 -08:00
5bf1b91528
http upgrade and connections use non blocking sockets
Benjamin Sergeant
2018-12-09 14:07:40 -08:00
49bf8bd830
threading race condition fixes, detected by TSAN
Benjamin Sergeant
2018-12-06 08:27:28 -08:00
f77ececc92
threading race condition fixes, detected by TSAN
Benjamin Sergeant
2018-12-06 08:27:28 -08:00
c64bc20bb5
cleanup
Benjamin Sergeant
2018-11-14 15:52:28 -08:00
58cccbdcf9
cleanup
Benjamin Sergeant
2018-11-14 15:52:28 -08:00
54da891f79
per-message deflate compression fixes
Benjamin Sergeant
2018-11-13 17:46:05 -08:00
5710ffba6a
per-message deflate compression fixes
Benjamin Sergeant
2018-11-13 17:46:05 -08:00
e847716076
move files around
Benjamin Sergeant
2018-11-12 17:56:59 -08:00
ccd4522b8f
move files around
Benjamin Sergeant
2018-11-12 17:56:59 -08:00
3a68bbd1b2
update readme / remove reference to missing compression support now that it is supported ...
Benjamin Sergeant
2018-11-12 09:01:42 -08:00
28f29b7385
update readme / remove reference to missing compression support now that it is supported ...
Benjamin Sergeant
2018-11-12 09:01:42 -08:00
9cb1d03411
tweaks doc / license + send proper error code when closing the connecion
Benjamin Sergeant
2018-11-12 09:00:55 -08:00
a7a422d6ed
tweaks doc / license + send proper error code when closing the connecion
Benjamin Sergeant
2018-11-12 09:00:55 -08:00
4fed156b90
per message deflate support (with zlib)
Benjamin Sergeant
2018-11-09 18:23:49 -08:00
43fcf93584
per message deflate support (with zlib)
Benjamin Sergeant
2018-11-09 18:23:49 -08:00
de8bcd36e8
(satori_publisher) better error handling
Benjamin Sergeant
2018-11-07 14:54:44 -08:00
32f4c8305e
(satori_publisher) better error handling
Benjamin Sergeant
2018-11-07 14:54:44 -08:00
135cfe3238
Add some example shell scripts to build on Linux
Benjamin Sergeant
2018-11-07 12:33:33 -08:00
3cf44c8078
Add some example shell scripts to build on Linux
Benjamin Sergeant
2018-11-07 12:33:33 -08:00
6dbfe28427
Add new example folder for publishing events to satori, with a minimal satori sdk
Benjamin Sergeant
2018-11-07 12:26:32 -08:00
9e899fde2f
Add new example folder for publishing events to satori, with a minimal satori sdk
Benjamin Sergeant
2018-11-07 12:26:32 -08:00
2b203c4616
Add missing files ...
Benjamin Sergeant
2018-11-07 12:24:08 -08:00
ffd4f1d322
Add missing files ...
Benjamin Sergeant
2018-11-07 12:24:08 -08:00
f12e655cf8
Add DockerFile + parse rsv1 field
Benjamin Sergeant
2018-11-07 11:45:17 -08:00
10dd13deb3
Add DockerFile + parse rsv1 field
Benjamin Sergeant
2018-11-07 11:45:17 -08:00
cf0045a483
stopping connection on Linux does not close the socket, which can create problem when re-starting the connection
Benjamin Sergeant
2018-11-01 17:02:49 -07:00
c1ed83a005
stopping connection on Linux does not close the socket, which can create problem when re-starting the connection
Benjamin Sergeant
2018-11-01 17:02:49 -07:00
9c81eeace0
add stop and start directives to ws_connect + display close info
Benjamin Sergeant
2018-10-31 10:27:17 -07:00
7117c74142
add stop and start directives to ws_connect + display close info
Benjamin Sergeant
2018-10-31 10:27:17 -07:00
5b333f91f6
update readme.md
Benjamin Sergeant
2018-10-27 11:46:11 -07:00
dd06a3fb25
update readme.md
Benjamin Sergeant
2018-10-27 11:46:11 -07:00
912d926260
Handle Sec-WebSocket-Accept correctly
Benjamin Sergeant
2018-10-27 10:24:48 -07:00
45b579447e
Handle Sec-WebSocket-Accept correctly
Benjamin Sergeant
2018-10-27 10:24:48 -07:00
a8dfd640a7
capture an error code and a reason when the server closes the connection
Benjamin Sergeant
2018-10-25 18:51:19 -07:00
bb0b1836cd
capture an error code and a reason when the server closes the connection
Benjamin Sergeant
2018-10-25 18:51:19 -07:00
390044b716
add doc about ping/pong
Benjamin Sergeant
2018-10-25 15:14:31 -07:00
d5c8815438
add doc about ping/pong
Benjamin Sergeant
2018-10-25 15:14:31 -07:00
8ac36e6ee5
ping pong example: more error handling
Benjamin Sergeant
2018-10-25 14:46:23 -07:00
ac500ed079
ping pong example: more error handling
Benjamin Sergeant
2018-10-25 14:46:23 -07:00
208c693088
ping / pong support / fix bug in dispatching received message type
Benjamin Sergeant
2018-10-25 14:40:58 -07:00
2bc38acbb1
ping / pong support / fix bug in dispatching received message type
Benjamin Sergeant
2018-10-25 14:40:58 -07:00
eae2f7d113
Better ping/pong support
Benjamin Sergeant
2018-10-25 12:01:47 -07:00
977feae1d6
Better ping/pong support
Benjamin Sergeant
2018-10-25 12:01:47 -07:00
45f92115f9
New ws_connect example. Close to wscat node.js tool.
Benjamin Sergeant
2018-10-08 21:42:45 -07:00
9c872fcc3e
New ws_connect example. Close to wscat node.js tool.
Benjamin Sergeant
2018-10-08 21:42:45 -07:00
a6199f1009
ping / pong support / fix bug in dispatching received message type
feature/windows_port_tls
Benjamin Sergeant
2018-10-25 14:40:58 -07:00
69093953da
Better ping/pong support
Benjamin Sergeant
2018-10-25 12:01:47 -07:00
64e88d617b
more examples
Benjamin Sergeant
2018-10-09 17:45:28 -07:00
5b4ca7f9df
more headers
Benjamin Sergeant
2018-10-09 16:54:17 -07:00