Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (16 sloc) 334 Bytes
#ifndef WEBSOCKET_H
#define WEBSOCKET_H
#include <stdlib.h>
struct http_client;
struct cmd;
enum ws_read_action {
WS_READ_FAIL,
WS_READ_MORE,
WS_READ_EXEC};
int
ws_handshake_reply(struct http_client *c);
enum ws_read_action
ws_add_data(struct http_client *c);
int
ws_reply(struct cmd *cmd, const char *p, size_t sz);
#endif