aboutsummaryrefslogtreecommitdiff
path: root/websocket.h
blob: 011e63e7d51c03801bb6ec743bd0d7c42fe94c61 (plain)
1
2
3
4
5
6
7
#include "websocksy.h"

/* WebSocket connection handling functions */
int ws_close(websocket* ws, ws_close_reason code, char* reason);
int ws_accept(int listen_fd, time_t current_time);
int ws_send_frame(websocket* ws, ws_operation opcode, uint8_t* data, size_t len);
int ws_data(websocket* ws);