Payden Sutherland
0d753915e9
Remove fprintf and add TODO
2012-11-14 23:49:08 -05:00
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
e8a7956336
Fix snprintf size greater than buffer size.
2012-10-30 00:20:06 -04: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
fda4e30b01
Add notification of unhandled control frames
...
Send a message to stderr. I have an inkling one
of my programs is timing out because it's not responding
to server PINGs. This might tell me that. Useful anyway.
2012-10-07 16:44:54 -04:00
Payden Sutherland
b28c123b01
Do not allow libwsclient_send after close frame.
2012-10-06 17:10:22 -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
f4cbcd61d1
No symbolic links and add README.md
2012-10-05 20:50:37 -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