Commit Graph

174 Commits

Author SHA1 Message Date
Benjamin Sergeant
79f601ac65 follow redirects is optional 2019-02-25 22:01:04 -08:00
Benjamin Sergeant
069eccf415 chunk encoding / simple redirect support / -I option 2019-02-25 21:50:42 -08:00
Benjamin Sergeant
b563541b14 can specify extra headers 2019-02-25 17:17:05 -08:00
Benjamin Sergeant
3bcd6f97a6 simple HTTP post support (urlencode parameters) 2019-02-25 15:55:38 -08:00
Benjamin Sergeant
c04bc3cdfc move http_client to a ws sub-command 2019-02-23 09:52:19 -08:00
Benjamin Sergeant
846f0c680a linux build fix 2019-02-23 09:48:00 -08:00
Benjamin Sergeant
c552a03ef0 linux build fix 2019-02-23 09:48:00 -08:00
Benjamin Sergeant
0f175143c9 Update README.md 2019-02-23 09:48:00 -08:00
Benjamin Sergeant
85569cb401 mv cobra_publisher under ws folder 2019-02-23 09:48:00 -08:00
Benjamin Sergeant
bd854553d4 ping pong added to ws 2019-02-23 09:48:00 -08:00
Benjamin Sergeant
38c57e1ed2 comments 2019-02-23 09:48:00 -08:00
Benjamin Sergeant
26cc5025fb add gitignore 2019-02-23 09:48:00 -08:00
Benjamin Sergeant
806cf39efc add echo and broadcast server as ws sub-commands 2019-02-23 09:48:00 -08:00
Benjamin Sergeant
daaa7ec704 cleanup 2019-02-23 09:48:00 -08:00
Benjamin Sergeant
3cffc6f9a5 add ws_chat and ws_connect sub commands to ws 2019-02-23 09:48:00 -08:00
Benjamin Sergeant
f8b1a03ee6 all CMakeLists are referenced by the top level one 2019-02-23 09:48:00 -08:00
Benjamin Sergeant
a7ff3c41a1 add target for building with homebrew 2019-02-23 09:48:00 -08:00
Benjamin Sergeant
78dbba5521 Feature/ws cli (#15)
* New command line tool for transfering files / still very beta.

* add readme

* use cli11 for argument parsing

* json -> msgpack

* stop using base64 and use binary which can be stored in message pack
2019-02-23 09:48:00 -08:00
Benjamin Sergeant
b211bdbe38 Update README.md
Add note about message fragmentation.
2019-02-23 09:48:00 -08:00
Benjamin Sergeant
a0a53ab986 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-23 09:48:00 -08:00
Benjamin Sergeant
8d819053ff document bug 2019-02-23 09:47:15 -08:00
Benjamin Sergeant
e20ddc2a08 unittest for sending large messages 2019-02-23 09:47:15 -08:00
Benjamin Sergeant
c415ba9427 Update formatting in README.md 2019-02-23 09:47:15 -08:00
Benjamin Sergeant
0b7c3ec235 can GET some pages 2019-02-14 20:11:42 -08:00
Benjamin Sergeant
29c96f287f linux compile fix 2019-02-14 10:20:10 -08:00
Benjamin Sergeant
2a17cad1bf add skeleton and broken http client code.
GET returns "Resource temporarily unavailable" errors...
2019-02-14 10:14:57 -08:00
Benjamin Sergeant
49077f8f44 more conf in CI 2019-01-29 17:50:19 -08:00
Benjamin Sergeant
6a23b8530f get free port that can be used by non root users (> 1024) 2019-01-28 15:24:19 -08:00
Benjamin Sergeant
ae841af91a use dynamically generated port number to configure servers in unittest 2019-01-28 15:24:19 -08:00
Benjamin Sergeant
44f38849b2
Merge pull request #13 from machinezone/user/bsergeant/poll
User/bsergeant/poll
2019-01-27 10:47:38 -08:00
Benjamin Sergeant
ee12fbdb5f windows build fix 2019-01-27 10:46:02 -08:00
Benjamin Sergeant
316c630830 constexpr to declare number of fds 2019-01-26 21:01:36 -08:00
Benjamin Sergeant
1ea5db6110 linux fix 2019-01-26 20:57:48 -08:00
Benjamin Sergeant
986d9a00c0 remove shutdown call 2019-01-26 20:54:23 -08:00
Benjamin Sergeant
7a05a11014 rebase poll branch 2019-01-26 20:50:25 -08:00
Benjamin Sergeant
f09434263c insensitive string compare when validating server connection header 2019-01-25 16:17:51 -08:00
Benjamin Sergeant
335f594165
Merge pull request #12 from machinezone/user/bsergeant/heart-beat
Add an optional heartbeat
2019-01-25 16:14:28 -08:00
Benjamin Sergeant
fa7ef06f4d heartbeat correct 2019-01-25 16:11:39 -08:00
Benjamin Sergeant
3c9ec0aed0 close server socket on exit 2019-01-24 21:16:32 -08:00
Benjamin Sergeant
c665d65cba unittest fix 2019-01-24 19:54:10 -08:00
Benjamin Sergeant
5d4e897cc4 add an heartbeat test 2019-01-24 18:50:07 -08:00
Benjamin Sergeant
05033714bf hearbeat 2019-01-24 12:42:49 -08:00
Benjamin Sergeant
a02bd3f25c
Update README.md 2019-01-15 09:36:43 -08:00
Benjamin Sergeant
fdbd213fa2 check and validate the Connection: Upgrade header in client/server 2019-01-15 09:31:37 -08:00
Benjamin Sergeant
da64d349c8
Merge pull request #10 from tonylin0826/master
Fix missing "Upgrade" header error
2019-01-15 09:22:11 -08:00
Tony Lin
17b01a8c66 Fix missing upgrade header error 2019-01-15 15:35:37 +08:00
Benjamin Sergeant
79dd766fab C++14 + use make_unique and make_shared to make shared pointers 2019-01-11 21:25:06 -08:00
Benjamin Sergeant
8375b28747 add travis badge 2019-01-08 10:13:23 -08:00
Benjamin Sergeant
e12551f309 travis -> osx 2019-01-08 10:04:47 -08:00
Benjamin Sergeant
6102f81710 Revert "Revert "try asan on Linux"" [Back to asan on Linux]
This reverts commit 02a704a8c7.
2019-01-07 21:13:48 -08:00