| 
    libwebsockets
    
   Lightweight C library for HTML5 websockets 
   | 
 
 This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Data Structures | |
| struct | lws_tls_session_dump | 
Macros | |
| #define | LWS_SESSION_TAG_LEN 96 | 
Typedefs | |
| typedef int(* | lws_tls_sess_cb_t) (struct lws_context *cx, struct lws_tls_session_dump *info) | 
Functions | |
| LWS_VISIBLE LWS_EXTERN int | lws_tls_session_dump_save (struct lws_vhost *vh, const char *host, uint16_t port, lws_tls_sess_cb_t cb_save, void *opq) | 
| LWS_VISIBLE LWS_EXTERN int | lws_tls_session_dump_load (struct lws_vhost *vh, const char *host, uint16_t port, lws_tls_sess_cb_t cb_load, void *opq) | 
| struct lws_tls_session_dump | 
Definition at line 34 of file lws-tls-sessions.h.
 Collaboration diagram for lws_tls_session_dump:| Data Fields | ||
|---|---|---|
| char | tag[LWS_SESSION_TAG_LEN] | |
| void * | blob | |
| void * | opaque | |
| size_t | blob_len | |
| #define LWS_SESSION_TAG_LEN 96 | 
Definition at line 32 of file lws-tls-sessions.h.
| typedef int(* lws_tls_sess_cb_t) (struct lws_context *cx, struct lws_tls_session_dump *info) | 
Definition at line 42 of file lws-tls-sessions.h.
| LWS_VISIBLE LWS_EXTERN int lws_tls_session_dump_save | ( | struct lws_vhost * | vh, | 
| const char * | host, | ||
| uint16_t | port, | ||
| lws_tls_sess_cb_t | cb_save, | ||
| void * | opq ) | 
lws_tls_session_dump_save() - serialize a tls session via a callback
| vh | the vhost to load into the session cache | 
| host | the name of the host the session relates to | 
| port | the port the session connects to on the host | 
| cb_save | the callback to perform the saving of the session blob | 
| opq | an opaque pointer passed into the callback | 
If a session matching the vhost/host/port exists in the vhost's session cache, serialize it via the provided callback.
opq is passed to the callback without being used by lws at all. 
References LWS_EXTERN, and LWS_VISIBLE.
| LWS_VISIBLE LWS_EXTERN int lws_tls_session_dump_load | ( | struct lws_vhost * | vh, | 
| const char * | host, | ||
| uint16_t | port, | ||
| lws_tls_sess_cb_t | cb_load, | ||
| void * | opq ) | 
lws_tls_session_dump_load() - deserialize a tls session via a callback
| vh | the vhost to load into the session cache | 
| host | the name of the host the session relates to | 
| port | the port the session connects to on the host | 
| cb_load | the callback to retreive the session blob from | 
| opq | an opaque pointer passed into the callback | 
Try to preload a session described by the first three parameters into the client session cache, from the given callback.
opq is passed to the callback without being used by lws at all.