Payden Sutherland
afe050ba79
Added wsclient_error type
...
Working on passing most errors to client code through
onerror callback.
2012-11-14 00:08:58 -05:00
Payden Sutherland
0002a5bec3
Thread out main client run loop.
...
No reason to block here if you don't want/need to. This frees up
the developer to do other useful work while the client is running.
2012-10-07 18:12:44 -04:00
Payden Sutherland
a10c910559
Modify the API a little bit
...
Needed to have wsclient structure passed to callbacks for references
to sockfd or other API functions that need it. (libwsclient_close)
Also, respond to close frames correctly. Right now, we just wait
on server to close TCP connection without a timeout.
2012-10-06 17:07:09 -04:00
Payden Sutherland
c24b62d0db
Pthreads for opening connection
2012-10-06 14:14:08 -04:00
Payden Sutherland
b670d894f3
Stole a lot of stuff from libwebsock
...
For frame processing mostly.
2012-10-06 10:53:31 -04:00
Payden Sutherland
d01f0a9e13
Initial commit of libwsclient
...
Only got the handshake and basic text frame sending done.
2012-10-05 20:46:37 -04:00