aboutsummaryrefslogtreecommitdiff
path: root/websocket.h
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2019-06-20 12:44:23 +0200
committercbdev <cb@cbcdn.com>2019-06-20 12:44:23 +0200
commit3c75202f5f4e9c1c61fead33f0f08e742d143223 (patch)
tree7f0ad4114530d8f7bf249b6a711916bc40220caa /websocket.h
parent76a4da3f245636b10f37b46bf3eb86ff3960461d (diff)
downloadwebsocksy-3c75202f5f4e9c1c61fead33f0f08e742d143223.tar.gz
websocksy-3c75202f5f4e9c1c61fead33f0f08e742d143223.tar.bz2
websocksy-3c75202f5f4e9c1c61fead33f0f08e742d143223.zip
Implement keep-alive pings (Fixes #4)
Diffstat (limited to 'websocket.h')
-rw-r--r--websocket.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/websocket.h b/websocket.h
index f57fccc..011e63e 100644
--- a/websocket.h
+++ b/websocket.h
@@ -2,6 +2,6 @@
/* WebSocket connection handling functions */
int ws_close(websocket* ws, ws_close_reason code, char* reason);
-int ws_accept(int listen_fd);
+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);