17 #if !defined(WEBSOCKET_H) 26 #define WebSocket_OP_CONTINUE 0x0 27 #define WebSocket_OP_TEXT 0x1 28 #define WebSocket_OP_BINARY 0x2 29 #define WebSocket_OP_CLOSE 0x8 30 #define WebSocket_OP_PING 0x9 31 #define WebSocket_OP_PONG 0xA 38 #define WebSocket_CLOSE_NORMAL 1000 39 #define WebSocket_CLOSE_GOING_AWAY 1001 40 #define WebSocket_CLOSE_PROTOCOL_ERROR 1002 41 #define WebSocket_CLOSE_UNKNOWN_DATA 1003 42 #define WebSocket_CLOSE_RESERVED 1004 43 #define WebSocket_CLOSE_NO_STATUS_CODE 1005 44 #define WebSocket_CLOSE_ABNORMAL 1006 45 #define WebSocket_CLOSE_BAD_DATA 1007 46 #define WebSocket_CLOSE_POLICY 1008 47 #define WebSocket_CLOSE_MSG_TOO_BIG 1009 48 #define WebSocket_CLOSE_NO_EXTENSION 1010 49 #define WebScoket_CLOSE_UNEXPECTED 1011 50 #define WebSocket_CLOSE_TLS_FAIL 1015 char * WebSocket_getdata(networkHandles *net, size_t bytes, size_t *actual_len)
receives data from a socket. It should receive all data from the socket that is immediately available...
int WebSocket_putdatas(networkHandles *net, char **buf0, size_t *buf0len, PacketBuffers *bufs)
int WebSocket_upgrade(networkHandles *net)
void WebSocket_framePosSeekTo(size_t)
void WebSocket_terminate(void)
size_t WebSocket_framePos()
void WebSocket_close(networkHandles *net, int status_code, const char *reason)
int WebSocket_connect(networkHandles *net, const char *uri)
int WebSocket_getch(networkHandles *net, char *c)
receives 1 byte from a socket
int WebSocket_proxy_connect(networkHandles *net, int ssl, const char *hostname)