David Baird
4b8bead6a1
Add a check for invalid frame length. Credit to Dane (4cad@silvertoque).
...
Closes #85 .
2019-05-19 15:14:15 -04:00
David Baird
112cb81567
Bump npm ws dependency used in test driver from 0.4.31 to 7.0.0. Closes #83 .
2019-05-19 09:17:20 -04:00
David Baird
189d9dd5f5
Maybe fix #57 : vector iterator not dereferencable.
2017-12-09 03:12:25 -05:00
David Baird and GitHub
aa93a71931
Fix commands in gtest.mk to build gtest-all.o.
2016-11-06 11:20:26 -05:00
David Baird
f7a761195b
Merge pull request #43 from fourtytoo/master
...
Enhance poll() to block forever when timeout is negative.
2015-09-10 07:27:58 -04:00
David Baird
47da376034
Merge pull request #40 from LindleyF/no-uninitialized
...
Avoid maybe-uninitialized warning.
2015-05-19 23:06:15 -04:00
David Baird
fbb31b5148
Add missing test/gtest.mk script.
2014-12-07 01:18:06 -05:00
David Baird
e1e50d092d
Add binary frames support and tests, to close feature request #38 .
2014-12-06 23:38:35 -05:00
David Baird
4fe25a880f
Add test code used to diagnose bug #37 .
2014-11-13 08:43:07 -05:00
David Baird
5abf4a78bd
Fix large frame >=65536 bytes header_size bug #37 . Was being calculated as 8 (wrong). Now corrected to 10.
2014-11-12 00:53:51 -05:00
David Baird
bf059090de
Merge pull request #32 from ahtsiu/fix_continuation_frames
...
fixed bug in handling continuation frames.
2014-09-13 02:28:25 -04:00
David Baird
d32b233502
Merge pull request #27 from donpillou/sendPing
...
Answer a ping with a pong
2014-01-02 16:30:04 -08:00
David Baird
c90f15d87f
Merge pull request #26 from donpillou/sendPing
...
Add method to send a websocket ping
2014-01-01 15:46:39 -08:00
David Baird
1598331652
Merge pull request #25 from donpillou/errorHandling
...
send/recv error handling, avoid in-code #ifdefs, update README with build instructions
2013-12-31 05:24:34 -08:00
David Baird
80d5c25872
Merge pull request #24 from donpillou/httpOrigin
...
Support for http origin header field
2013-12-30 05:30:51 -08:00
David Baird
368682d392
Update README.
2013-12-28 09:49:58 -05:00
David Baird
ce6bfd5482
Update README.
2013-12-28 09:48:34 -05:00
David Baird
81ed98ca9e
Add timeout (in milliseconds) argument to poll() with a default of zero to preserve old behavior.
2013-12-28 09:41:43 -05:00
David Baird
079a5eb582
Exclude port from Host: header if port is 80.
2013-11-30 16:57:27 -07:00
David Baird
b21fb350b9
Add masking key to close. Fixes #21 .
2013-11-14 00:03:40 -07:00
David Baird
e610b3c626
Eliminate trailing data on close. Fixes #21 .
2013-11-14 00:00:28 -07:00
David Baird
d678234e90
Fix masking calculation in txbuf.
2013-11-12 19:00:38 -07:00
David Baird
fc12f28312
Check url size limit.
2013-11-12 18:41:43 -07:00
David Baird
33ca65e4e8
Move _CRT_SECURE_NO_WARNINGS check to the top of file.
2013-11-12 18:33:12 -07:00
David Baird
7d6681eea1
Fix type cast for recv().
2013-11-12 17:19:38 -07:00
David Baird
f05878ed89
Fix typo: CRTSECURE_NO_WARNINGS should be _CRT_SECURE_NO_WARNINGS.
2013-11-12 17:15:17 -07:00
David Baird
2cac70bcb8
Add masking to sent frames. Masking can be disabled by using the from_url_no_mask() factory instead of from_url().
2013-11-12 14:46:19 -07:00
David Baird
1788a9dfa1
Increase testserver verbosity.
2013-11-12 14:45:27 -07:00
David Baird
7cbf090320
Fix issue #20 : type cast in send(), add WSAStartup, and add CRTSECURE_NO_WARNINGS for MSVC2013.
2013-11-12 11:05:00 -07:00
David Baird
771ccaa494
Merge pull request #19 from kivatek/winports-try4
...
easywsclient for Windows
2013-10-02 10:36:13 -07:00
David Baird
8805fbf736
Remove testserver from all.
2013-09-29 20:05:30 -06:00
David Baird
7064856023
Add "testserver" target to Makefile.
2013-09-27 14:25:29 -06:00
David Baird
d82fb91436
Clean up memory in examples.
2013-09-27 14:14:43 -06:00
David Baird
e92a98cae2
Switch from ISC license to MIT.
2013-09-27 04:24:24 -06:00
David Baird
1feac2e054
Rename struct to class (to help new C++ users who are unfamiliar that structs are classes).
2013-09-27 04:15:13 -06:00
David Baird
09c3ba8054
Prefer // comments over #if 0.
2013-09-27 04:04:36 -06:00
David Baird
9b7a5c9575
Prefer separate compilation.
2013-09-27 04:03:28 -06:00
David Baird
f453367866
Correct dependencies in Makefile. Add -Wall flag and fix all -Wall warnings.
2013-09-10 12:47:07 -06:00
David Baird
3cbc9719e9
Remove extraneous arguments. Closes #14 .
2013-09-10 12:40:24 -06:00
David Baird
ebd4a607fb
Fixed URL parsing. Set default value for path.
...
Was matching parsing "ws://echo.websocket.org/" as host="echo.websocket.org/" which shouldn't have the "/" at the end.
Was also getting bogus values for path when it should have taken on a default value.
2013-07-12 13:08:45 -06:00
David Baird
b7825802b9
Updating example to close when they receive "world".
2013-05-14 11:11:39 -06:00
David Baird
50c2d0e18d
* Switching from char to uint8_t
...
* Adding sockfd to ::close()
2013-05-14 11:11:07 -06:00
David Baird
a3eeff2a1b
Adding Makefile.
2013-05-14 11:10:23 -06:00
David Baird
af97883097
Setting readyState to CLOSED when calling ::close()
2013-05-14 10:59:58 -06:00
David Baird
86ec5a65b1
* Calling ::close() when txbuf empties and readyState is CLOSING
...
* Removing unnecessary const.
* Fixing up spacing to be consistent with rest of code.
2013-05-14 10:51:37 -06:00
David Baird
e6fd1fc30e
Close only if not already closed.
2013-04-27 23:34:09 -06:00
David Baird
f7d998481c
Adding close() method. It abruptly closes the socket (does not bother to send a
...
CLOSE message prior to actually closing the socket).
2013-04-27 23:26:19 -06:00
David Baird
f75e79b1ff
Merge pull request #2 from helloIAmPau/master
...
Allow for no :port and no / in URLs
2013-04-27 22:14:01 -07:00
David Baird
0bfc0f1ed5
Merge pull request #1 from helloIAmPau/master
...
Websocket server URL with no path in the end are not parsed! (but now they are)
2013-04-27 10:34:32 -07:00
David Baird
2106759d98
Updating README.
2013-04-05 12:07:00 -06:00
David Baird
ed011c244e
Updating README.
2013-04-05 12:02:04 -06:00
David Baird
af6d38638d
Refactoring into separate .hpp and .cpp files.
2013-04-05 11:38:51 -06:00
David Baird
ad0f214fa9
Adding wget message.
2012-08-20 13:43:49 -06:00
David Baird
302fa7e9e8
Removing trailing whitespaces.
2012-08-20 13:42:46 -06:00
David Baird
ff7780f09b
Converting to PIMPL, adding a dummy WebSocket, and introducing a compilation
...
unit via EASYWSCLIENT_COMPILATION_UNIT.
2012-08-20 13:29:53 -06:00
David Baird
d4e6176868
Removing old comments.
2012-08-19 23:24:00 -06:00
David Baird
47e92d3861
Adding COPYING (ISC license terms).
2012-08-19 23:21:26 -06:00
David Baird
5adb5d1969
Updating README.
2012-08-19 23:06:37 -06:00
David Baird
062c163c83
Updating README.
2012-08-19 23:00:57 -06:00
David Baird
b94fec0873
Got first version working. Can connect, send, and receive.
2012-08-19 22:46:33 -06:00
David Baird
5e5bc69860
Initial commit
2012-08-19 20:18:05 -07:00