mirror of
https://github.com/payden/libwsclient
synced 2024-10-27 17:54:01 +00:00
Update wsclient.h
This commit is contained in:
parent
4d3d0389f8
commit
8262b99226
@ -138,6 +138,12 @@ void libwsclient_close(wsclient *c);
|
|||||||
int libwsclient_helper_socket(wsclient *c, const char *path);
|
int libwsclient_helper_socket(wsclient *c, const char *path);
|
||||||
void *libwsclient_helper_socket_thread(void *ptr);
|
void *libwsclient_helper_socket_thread(void *ptr);
|
||||||
|
|
||||||
|
void libwsclient_onclose(wsclient *client, int (*cb)(wsclient *c));
|
||||||
|
void libwsclient_onopen(wsclient *client, int (*cb)(wsclient *c));
|
||||||
|
void libwsclient_onmessage(wsclient *client, int (*cb)(wsclient *c, wsclient_message *msg));
|
||||||
|
void libwsclient_onerror(wsclient *client, int (*cb)(wsclient *c, wsclient_error *err));
|
||||||
|
int libwsclient_send(wsclient *client, char *strdata);
|
||||||
|
|
||||||
//Define errors
|
//Define errors
|
||||||
char *errors[] = {
|
char *errors[] = {
|
||||||
"Unknown error occured",
|
"Unknown error occured",
|
||||||
|
Loading…
Reference in New Issue
Block a user