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