Commit Graph

  • 836d202276 adding in examples of headers and origin allow-setting-headers talksik 2024-03-30 08:30:39 -07:00
  • f7659c5764 adding in optional ability to add headers talksik 2024-01-30 10:58:11 -08:00
  • c364dbc170 adding in use of username master talksik 2024-01-27 14:05:30 -08:00
  • afc1d8cfc5 Fix build error of IPPROTO_TCP on android Hanks 2021-01-12 21:27:15 +08:00
  • 4b8bead6a1 Add a check for invalid frame length. Credit to Dane (4cad@silvertoque). Closes #85. David Baird 2019-05-19 10:04:43 -04:00
  • 112cb81567 Bump npm ws dependency used in test driver from 0.4.31 to 7.0.0. Closes #83. David Baird 2019-05-19 09:03:37 -04:00
  • 9bc8efb765 Increase max URL length Bit Connor 2018-06-28 18:41:12 +03:00
  • 9b87dc4880 remove debug output John Belmonte 2018-03-14 14:00:24 +09:00
  • 189d9dd5f5 Maybe fix #57: vector iterator not dereferencable. David Baird 2017-07-29 13:34:35 -04:00
  • aa93a71931 Fix commands in gtest.mk to build gtest-all.o. David Baird 2016-11-06 11:20:26 -05:00
  • f7a761195b Merge pull request #43 from fourtytoo/master David Baird 2015-09-10 07:27:58 -04:00
  • 4eb06e0f1b poll() blocks for ever when timeout is negative. wpelissero 2015-09-10 09:54:01 +02:00
  • 47da376034 Merge pull request #40 from LindleyF/no-uninitialized David Baird 2015-05-19 23:06:15 -04:00
  • 5524d7f663 Even though there is no case where i does not get initialized, the compiler doesn't always know this. Avoid a maybe-unintialized warning for i. Lindley French 2015-05-19 14:35:27 -07:00
  • fbb31b5148 Add missing test/gtest.mk script. David Baird 2014-12-07 01:18:06 -05:00
  • e1e50d092d Add binary frames support and tests, to close feature request #38. David Baird 2014-12-06 23:38:35 -05:00
  • 4fe25a880f Add test code used to diagnose bug #37. David Baird 2014-11-13 08:43:07 -05:00
  • 5abf4a78bd Fix large frame >=65536 bytes header_size bug #37. Was being calculated as 8 (wrong). Now corrected to 10. David Baird 2014-11-12 00:53:51 -05:00
  • bf059090de Merge pull request #32 from ahtsiu/fix_continuation_frames David Baird 2014-09-13 02:28:25 -04:00
  • 7bb7ed5600 . fixed indents Ken 2014-09-12 17:26:57 +08:00
  • 2fbf81aaee fixed bug in handling continuation frames. Ken 2014-09-02 16:47:19 +08:00
  • d32b233502 Merge pull request #27 from donpillou/sendPing David Baird 2014-01-02 16:30:04 -08:00
  • 045c3ebf9b Answer a ping with a pong Donald Pillou 2014-01-02 15:52:09 +01:00
  • c90f15d87f Merge pull request #26 from donpillou/sendPing David Baird 2014-01-01 15:46:39 -08:00
  • 5a54812efe Add method to send a websocket ping Donald Pillou 2014-01-01 20:21:11 +01:00
  • 1598331652 Merge pull request #25 from donpillou/errorHandling David Baird 2013-12-31 05:24:34 -08:00
  • c5917f913e Add send/receive error handling Donald Pillou 2013-12-30 16:32:35 +01:00
  • b0366105c5 Working example build instructions Donald Pillou 2013-12-30 15:45:35 +01:00
  • cbfa74c0e9 Avoid most in-code #ifdefs Donald Pillou 2013-12-30 15:44:48 +01:00
  • 80d5c25872 Merge pull request #24 from donpillou/httpOrigin David Baird 2013-12-30 05:30:51 -08:00
  • 3d76a2ece9 Added optional origin header field Donald Pillou 2013-12-30 13:22:41 +01:00
  • 4dfa56b8cd Added some const Donald Pillou 2013-12-30 13:12:23 +01:00
  • 368682d392 Update README. David Baird 2013-12-28 09:49:58 -05:00
  • ce6bfd5482 Update README. David Baird 2013-12-28 09:48:34 -05:00
  • 81ed98ca9e Add timeout (in milliseconds) argument to poll() with a default of zero to preserve old behavior. David Baird 2013-12-28 09:41:43 -05:00
  • 079a5eb582 Exclude port from Host: header if port is 80. David Baird 2013-11-30 16:57:27 -07:00
  • b21fb350b9 Add masking key to close. Fixes #21. David Baird 2013-11-14 00:03:40 -07:00
  • e610b3c626 Eliminate trailing data on close. Fixes #21. David Baird 2013-11-14 00:00:28 -07:00
  • d678234e90 Fix masking calculation in txbuf. David Baird 2013-11-12 19:00:38 -07:00
  • fc12f28312 Check url size limit. David Baird 2013-11-12 18:41:43 -07:00
  • 33ca65e4e8 Move _CRT_SECURE_NO_WARNINGS check to the top of file. David Baird 2013-11-12 18:33:12 -07:00
  • 7d6681eea1 Fix type cast for recv(). David Baird 2013-11-12 17:19:38 -07:00
  • f05878ed89 Fix typo: CRTSECURE_NO_WARNINGS should be _CRT_SECURE_NO_WARNINGS. David Baird 2013-11-12 17:15:17 -07:00
  • 2cac70bcb8 Add masking to sent frames. Masking can be disabled by using the from_url_no_mask() factory instead of from_url(). David Baird 2013-11-12 14:46:19 -07:00
  • 1788a9dfa1 Increase testserver verbosity. David Baird 2013-11-12 14:45:27 -07:00
  • 7cbf090320 Fix issue #20: type cast in send(), add WSAStartup, and add CRTSECURE_NO_WARNINGS for MSVC2013. David Baird 2013-11-12 11:05:00 -07:00
  • 771ccaa494 Merge pull request #19 from kivatek/winports-try4 David Baird 2013-10-02 10:36:13 -07:00
  • 015344684f easywsclient for Windows kivatek 2013-09-27 01:06:15 +09:00
  • 8805fbf736 Remove testserver from all. David Baird 2013-09-29 20:05:30 -06:00
  • 7064856023 Add "testserver" target to Makefile. David Baird 2013-09-27 14:25:29 -06:00
  • d82fb91436 Clean up memory in examples. David Baird 2013-09-27 14:14:43 -06:00
  • e92a98cae2 Switch from ISC license to MIT. David Baird 2013-09-27 04:21:55 -06:00
  • 1feac2e054 Rename struct to class (to help new C++ users who are unfamiliar that structs are classes). David Baird 2013-09-27 04:15:13 -06:00
  • 09c3ba8054 Prefer // comments over #if 0. David Baird 2013-09-27 04:04:36 -06:00
  • 9b7a5c9575 Prefer separate compilation. David Baird 2013-09-27 04:03:28 -06:00
  • f453367866 Correct dependencies in Makefile. Add -Wall flag and fix all -Wall warnings. David Baird 2013-09-10 12:47:07 -06:00
  • 3cbc9719e9 Remove extraneous arguments. Closes #14. David Baird 2013-09-10 12:40:24 -06:00
  • 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. David Baird 2013-07-12 13:08:45 -06:00
  • b7825802b9 Updating example to close when they receive "world". David Baird 2013-05-14 11:11:39 -06:00
  • 50c2d0e18d * Switching from char to uint8_t * Adding sockfd to ::close() David Baird 2013-05-14 11:11:07 -06:00
  • a3eeff2a1b Adding Makefile. David Baird 2013-05-14 11:10:23 -06:00
  • af97883097 Setting readyState to CLOSED when calling ::close() David Baird 2013-05-14 10:59:58 -06:00
  • 86ec5a65b1 * Calling ::close() when txbuf empties and readyState is CLOSING * Removing unnecessary const. * Fixing up spacing to be consistent with rest of code. David Baird 2013-05-14 10:51:37 -06:00
  • bc1368b849 resolved some issue and added method to read readystate of the websocket Pasquale Boemio 2013-05-11 09:55:41 +02:00
  • 7ac70dbdcf removed vexatious line Pasquale Boemio 2013-04-29 17:35:10 +02:00
  • b9a6eb362e removed vexatious line Pasquale Boemio 2013-04-29 17:32:05 +02:00
  • 370a899876 removed vexatious line Pasquale Boemio 2013-04-29 17:28:40 +02:00
  • 2b9575c434 added clean close method Pasquale Boemio 2013-04-29 17:20:36 +02:00
  • e6fd1fc30e Close only if not already closed. David Baird 2013-04-27 23:34:09 -06:00
  • f7d998481c Adding close() method. It abruptly closes the socket (does not bother to send a CLOSE message prior to actually closing the socket). David Baird 2013-04-27 23:26:19 -06:00
  • f75e79b1ff Merge pull request #2 from helloIAmPau/master David Baird 2013-04-27 22:14:01 -07:00
  • db9c58f58e typo Pasquale Boemio 2013-04-27 19:48:26 +02:00
  • 3c8d98ecd0 added last case Pasquale Boemio 2013-04-27 19:42:24 +02:00
  • 0bfc0f1ed5 Merge pull request #1 from helloIAmPau/master David Baird 2013-04-27 10:34:32 -07:00
  • 54cd4023cb unused decision! Pasquale Boemio 2013-04-26 22:27:52 +02:00
  • d6b8dc8c41 added "no path in url" parser case Pasquale Boemio 2013-04-26 22:20:48 +02:00
  • bfc6fdad62 added case path null Pasquale Boemio 2013-04-26 21:52:54 +02:00
  • 2106759d98 Updating README. David Baird 2013-04-05 12:07:00 -06:00
  • ed011c244e Updating README. David Baird 2013-04-05 12:02:04 -06:00
  • af6d38638d Refactoring into separate .hpp and .cpp files. David Baird 2013-04-05 11:38:51 -06:00
  • ad0f214fa9 Adding wget message. David Baird 2012-08-20 13:43:49 -06:00
  • 302fa7e9e8 Removing trailing whitespaces. David Baird 2012-08-20 13:42:46 -06:00
  • ff7780f09b Converting to PIMPL, adding a dummy WebSocket, and introducing a compilation unit via EASYWSCLIENT_COMPILATION_UNIT. David Baird 2012-08-20 13:29:53 -06:00
  • d4e6176868 Removing old comments. David Baird 2012-08-19 23:24:00 -06:00
  • 47e92d3861 Adding COPYING (ISC license terms). David Baird 2012-08-19 23:21:26 -06:00
  • 5adb5d1969 Updating README. David Baird 2012-08-19 23:06:37 -06:00
  • 062c163c83 Updating README. David Baird 2012-08-19 23:00:57 -06:00
  • b94fec0873 Got first version working. Can connect, send, and receive. David Baird 2012-08-19 22:46:33 -06:00
  • 5e5bc69860 Initial commit David Baird 2012-08-19 20:18:05 -07:00