1
0
mirror of https://github.com/payden/libwsclient synced 2024-10-27 17:54:01 +00:00
Commit Graph

10 Commits

Author SHA1 Message Date
Payden Sutherland
06ac80bd3b Change connection str back to echo.websocket.org 2012-11-17 12:12:15 -05:00
Payden Sutherland
550ce57eab Add returns to non-void functions.
Let me at least pretend I know what I'm doing in C.
2012-11-16 22:39:35 -05:00
Payden Sutherland
2b2689e9da Update README.md and add some comments to test.c 2012-11-15 11:12:16 -05:00
Payden Sutherland
05a0f6309c Add libwsclient_helper_socket function.
This function binds UNIX socket listener with specified path.
Any data received by this UNIX socket is sent out as a
WebSocket text frame.  This allows a user to send data
on behalf of a running libwsclient program.  Will add
some documentation for the entire library soon.  Will go
into depth there.
2012-11-15 10:37:00 -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
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