Commit Graph

18 Commits

Author SHA1 Message Date
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 50c2d0e18d * Switching from char to uint8_t
* Adding sockfd to ::close()
2013-05-14 11:11:07 -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
Pasquale Boemio bc1368b849 resolved some issue and added method to read readystate of the websocket 2013-05-11 09:55:41 +02:00
Pasquale Boemio b9a6eb362e removed vexatious line 2013-04-29 17:32:05 +02:00
Pasquale Boemio 370a899876 removed vexatious line 2013-04-29 17:28:40 +02:00
Pasquale Boemio 2b9575c434 added clean close method 2013-04-29 17:20:36 +02: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
Pasquale Boemio db9c58f58e typo 2013-04-27 19:48:26 +02:00
Pasquale Boemio 3c8d98ecd0 added last case 2013-04-27 19:42:24 +02:00
Pasquale Boemio 54cd4023cb unused decision! 2013-04-26 22:27:52 +02:00
Pasquale Boemio d6b8dc8c41 added "no path in url" parser case 2013-04-26 22:20:48 +02:00
Pasquale Boemio bfc6fdad62 added case path null 2013-04-26 21:52:54 +02:00
David Baird af6d38638d Refactoring into separate .hpp and .cpp files. 2013-04-05 11:38:51 -06:00