![]() |
libwebsockets
Lightweight C library for HTML5 websockets
|
Functions | |
LWS_VISIBLE LWS_EXTERN void | lws_set_timeout (struct lws *wsi, enum pending_timeout reason, int secs) |
APIs related to setting connection timeouts
LWS_VISIBLE LWS_EXTERN void lws_set_timeout | ( | struct lws * | wsi, |
enum pending_timeout | reason, | ||
int | secs | ||
) |
#include <lib/libwebsockets.h>
lws_set_timeout() - marks the wsi as subject to a timeout
You will not need this unless you are doing something special
wsi | Websocket connection instance |
reason | timeout reason |
secs | how many seconds |