mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
trac 36 make libwebsocket_set_timeout public
Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
parent
96d48fdc28
commit
9beedc163c
2 changed files with 16 additions and 17 deletions
|
@ -835,6 +835,22 @@ libwebsocket_service_fd(struct libwebsocket_context *context,
|
|||
LWS_VISIBLE LWS_EXTERN void *
|
||||
libwebsocket_context_user(struct libwebsocket_context *context);
|
||||
|
||||
enum pending_timeout {
|
||||
NO_PENDING_TIMEOUT = 0,
|
||||
PENDING_TIMEOUT_AWAITING_PROXY_RESPONSE,
|
||||
PENDING_TIMEOUT_ESTABLISH_WITH_SERVER,
|
||||
PENDING_TIMEOUT_AWAITING_SERVER_RESPONSE,
|
||||
PENDING_TIMEOUT_AWAITING_PING,
|
||||
PENDING_TIMEOUT_CLOSE_ACK,
|
||||
PENDING_TIMEOUT_AWAITING_EXTENSION_CONNECT_RESPONSE,
|
||||
PENDING_TIMEOUT_SENT_CLIENT_HANDSHAKE,
|
||||
PENDING_TIMEOUT_SSL_ACCEPT,
|
||||
};
|
||||
|
||||
LWS_EXTERN void
|
||||
libwebsocket_set_timeout(struct libwebsocket *wsi,
|
||||
enum pending_timeout reason, int secs);
|
||||
|
||||
/*
|
||||
* IMPORTANT NOTICE!
|
||||
*
|
||||
|
|
|
@ -289,19 +289,6 @@ struct libwebsocket_context {
|
|||
};
|
||||
|
||||
|
||||
enum pending_timeout {
|
||||
NO_PENDING_TIMEOUT = 0,
|
||||
PENDING_TIMEOUT_AWAITING_PROXY_RESPONSE,
|
||||
PENDING_TIMEOUT_ESTABLISH_WITH_SERVER,
|
||||
PENDING_TIMEOUT_AWAITING_SERVER_RESPONSE,
|
||||
PENDING_TIMEOUT_AWAITING_PING,
|
||||
PENDING_TIMEOUT_CLOSE_ACK,
|
||||
PENDING_TIMEOUT_AWAITING_EXTENSION_CONNECT_RESPONSE,
|
||||
PENDING_TIMEOUT_SENT_CLIENT_HANDSHAKE,
|
||||
PENDING_TIMEOUT_SSL_ACCEPT,
|
||||
};
|
||||
|
||||
|
||||
/*
|
||||
* This is totally opaque to code using the library. It's exported as a
|
||||
* forward-reference pointer-only declaration; the user can use the pointer with
|
||||
|
@ -443,10 +430,6 @@ LWS_EXTERN int
|
|||
insert_wsi_socket_into_fds(struct libwebsocket_context *context,
|
||||
struct libwebsocket *wsi);
|
||||
|
||||
LWS_EXTERN void
|
||||
libwebsocket_set_timeout(struct libwebsocket *wsi,
|
||||
enum pending_timeout reason, int secs);
|
||||
|
||||
LWS_EXTERN int
|
||||
lws_issue_raw(struct libwebsocket *wsi, unsigned char *buf, size_t len);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue