mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-30 00:00:16 +01:00
ss: lws_ss_get_vhost
This commit is contained in:
parent
cfa9d88e07
commit
44d9bc08f5
2 changed files with 20 additions and 0 deletions
|
@ -410,6 +410,17 @@ lws_ss_state_name(int state);
|
||||||
LWS_VISIBLE LWS_EXTERN struct lws_context *
|
LWS_VISIBLE LWS_EXTERN struct lws_context *
|
||||||
lws_ss_get_context(struct lws_ss_handle *h);
|
lws_ss_get_context(struct lws_ss_handle *h);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* lws_ss_get_vhost() - convenience helper to get the vhost the ss is bound to
|
||||||
|
*
|
||||||
|
* \param h: secure streams handle
|
||||||
|
*
|
||||||
|
* Returns NULL if disconnected, or the the lws_vhost of the ss' wsi connection.
|
||||||
|
*/
|
||||||
|
LWS_VISIBLE LWS_EXTERN struct lws_vhost *
|
||||||
|
lws_ss_get_vhost(struct lws_ss_handle *h);
|
||||||
|
|
||||||
|
|
||||||
#define LWSSS_TIMEOUT_FROM_POLICY 0
|
#define LWSSS_TIMEOUT_FROM_POLICY 0
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1933,6 +1933,15 @@ lws_ss_get_context(struct lws_ss_handle *h)
|
||||||
return h->context;
|
return h->context;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
struct lws_vhost *
|
||||||
|
lws_ss_get_vhost(struct lws_ss_handle *h)
|
||||||
|
{
|
||||||
|
if (!h->wsi)
|
||||||
|
return NULL;
|
||||||
|
return h->wsi->a.vhost;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
const char *
|
const char *
|
||||||
lws_ss_rideshare(struct lws_ss_handle *h)
|
lws_ss_rideshare(struct lws_ss_handle *h)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue