wss_server sample
wss_keep_alive_storage
is only used within wss_server sample.
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
Summary
Syntax
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
wss_server sample
wss_keep_alive_storage
wss_keep_alive_storage struct
Syntax
Show:
Summary
Declaration
Definition
from
keep_alive.h:20
struct
wss_keep_alive_storage
;
Implemented in
keep_alive.c:33
Fields
Field
Declared as
wss_keep_alive_storage::max_clients
size_t
wss_keep_alive_storage::check_client_alive_cb
wss_check_client_alive_cb_t
wss_keep_alive_storage::client_not_alive_cb
wss_check_client_alive_cb_t
wss_keep_alive_storage::keep_alive_period_ms
size_t
wss_keep_alive_storage::not_alive_after_ms
size_t
wss_keep_alive_storage::user_ctx
void
*
wss_keep_alive_storage::q
QueueHandle_t
wss_keep_alive_storage::clients
client_fd_action_t
[
]
Examples
References
from
examples
Code
Location
Scope
Referrer
typedef
struct
wss_keep_alive_storage
{
keep_alive.c:33
}
wss_keep_alive_storage_t
;
keep_alive.c:42
typedef
struct
wss_keep_alive_storage
*
wss_keep_alive_t
;
keep_alive.c:44
typedef
struct
wss_keep_alive_storage
*
wss_keep_alive_t
;
keep_alive.h:21
struct
wss_keep_alive_storage
;
keep_alive.h:20
}
wss_keep_alive_storage_t
;
keep_alive.c:42
wss_keep_alive_storage_t
typedef
struct
wss_keep_alive_storage
*
wss_keep_alive_t
;
keep_alive.c:44
wss_keep_alive_t
static
uint64_t
get_max_delay
(
wss_keep_alive_t
h
)
keep_alive.c:54
get_max_delay()
get_max_delay()::h
static
bool
update_client
(
wss_keep_alive_t
h
,
int
sockfd
,
uint64_t
timestamp
)
keep_alive.c:72
update_client()
update_client()::h
static
bool
remove_client
(
wss_keep_alive_t
h
,
int
sockfd
)
keep_alive.c:83
remove_client()
remove_client()::h
static
bool
add_new_client
(
wss_keep_alive_t
h
,
int
sockfd
)
keep_alive.c:94
add_new_client()
add_new_client()::h
wss_keep_alive_storage_t
*
keep_alive_storage
=
arg
;
keep_alive.c:109
keep_alive_task()
free
(
keep_alive_storage
)
;
keep_alive.c:156
keep_alive_task()
wss_keep_alive_t
wss_keep_alive_start
(
wss_keep_alive_config_t
*
config
)
keep_alive.c:161
wss_keep_alive_start()
wss_keep_alive_t
keep_alive_storage
=
calloc
(
1
,
keep_alive.c:165
wss_keep_alive_start()
sizeof
(
wss_keep_alive_storage_t
)
+
client_list_size
*
sizeof
(
client_fd_action_t
)
)
;
keep_alive.c:166
wss_keep_alive_start()
void
wss_keep_alive_stop
(
wss_keep_alive_t
h
)
keep_alive.c:185
wss_keep_alive_stop()
wss_keep_alive_stop()::h
esp_err_t
wss_keep_alive_add_client
(
wss_keep_alive_t
h
,
int
fd
)
keep_alive.c:192
wss_keep_alive_add_client()
wss_keep_alive_add_client()::h
esp_err_t
wss_keep_alive_remove_client
(
wss_keep_alive_t
h
,
int
fd
)
keep_alive.c:201
wss_keep_alive_remove_client()
wss_keep_alive_remove_client()::h
esp_err_t
wss_keep_alive_client_is_active
(
wss_keep_alive_t
h
,
int
fd
)
keep_alive.c:210
wss_keep_alive_client_is_active()
wss_keep_alive_client_is_active()::h
void
wss_keep_alive_set_user_ctx
(
wss_keep_alive_t
h
,
void
*
ctx
)
keep_alive.c:221
wss_keep_alive_set_user_ctx()
wss_keep_alive_set_user_ctx()::h
void
*
wss_keep_alive_get_user_ctx
(
wss_keep_alive_t
h
)
keep_alive.c:226
wss_keep_alive_get_user_ctx()
wss_keep_alive_get_user_ctx()::h
typedef
struct
wss_keep_alive_storage
*
wss_keep_alive_t
;
keep_alive.h:21
wss_keep_alive_t
typedef
bool
(
*
wss_check_client_alive_cb_t
)
(
wss_keep_alive_t
h
,
int
fd
)
;
keep_alive.h:22
typedef
bool
(
*
wss_client_not_alive_cb_t
)
(
wss_keep_alive_t
h
,
int
fd
)
;
keep_alive.h:23
esp_err_t
wss_keep_alive_add_client
(
wss_keep_alive_t
h
,
int
fd
)
;
keep_alive.h:46
wss_keep_alive_add_client()
wss_keep_alive_add_client()::h
esp_err_t
wss_keep_alive_remove_client
(
wss_keep_alive_t
h
,
int
fd
)
;
keep_alive.h:55
wss_keep_alive_remove_client()
wss_keep_alive_remove_client()::h
esp_err_t
wss_keep_alive_client_is_active
(
wss_keep_alive_t
h
,
int
fd
)
;
keep_alive.h:65
wss_keep_alive_client_is_active()
wss_keep_alive_client_is_active()::h
wss_keep_alive_t
wss_keep_alive_start
(
wss_keep_alive_config_t
*
config
)
;
keep_alive.h:73
wss_keep_alive_start()
void
wss_keep_alive_stop
(
wss_keep_alive_t
h
)
;
keep_alive.h:80
wss_keep_alive_stop()
wss_keep_alive_stop()::h
void
wss_keep_alive_set_user_ctx
(
wss_keep_alive_t
h
,
void
*
ctx
)
;
keep_alive.h:88
wss_keep_alive_set_user_ctx()
wss_keep_alive_set_user_ctx()::h
void
*
wss_keep_alive_get_user_ctx
(
wss_keep_alive_t
h
)
;
keep_alive.h:96
wss_keep_alive_get_user_ctx()
wss_keep_alive_get_user_ctx()::h
wss_keep_alive_t
h
=
httpd_get_global_user_ctx
(
hd
)
;
wss_server_example.c:106
wss_open_fd()
wss_keep_alive_t
h
=
httpd_get_global_user_ctx
(
hd
)
;
wss_server_example.c:113
wss_close_fd()
bool
client_not_alive_cb
(
wss_keep_alive_t
h
,
int
fd
)
wss_server_example.c:159
client_not_alive_cb()
client_not_alive_cb()::h
bool
check_client_alive_cb
(
wss_keep_alive_t
h
,
int
fd
)
wss_server_example.c:166
check_client_alive_cb()
check_client_alive_cb()::h
wss_keep_alive_t
keep_alive
=
wss_keep_alive_start
(
&
keep_alive_config
)
;
wss_server_example.c:187
start_wss_echo_server()
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
All items filtered out
All items filtered out
Class Tree
from
examples
All items filtered out
All items filtered out
Override Tree
from
examples
All items filtered out
All items filtered out
Implementations
from
examples
All items filtered out
All items filtered out
Instances
from
examples
Instance
Scope
Location
Project
wss_keep_alive_add_client()::h
wss_keep_alive_add_client()
keep_alive.h:46
wss_keep_alive_remove_client()::h
wss_keep_alive_remove_client()
keep_alive.h:55
wss_keep_alive_client_is_active()::h
wss_keep_alive_client_is_active()
keep_alive.h:65
return
wss_keep_alive_start()
keep_alive.h:73
wss_keep_alive_stop()::h
wss_keep_alive_stop()
keep_alive.h:80
wss_keep_alive_set_user_ctx()::h
wss_keep_alive_set_user_ctx()
keep_alive.h:88
wss_keep_alive_get_user_ctx()::h
wss_keep_alive_get_user_ctx()
keep_alive.h:96
get_max_delay()::h
get_max_delay()
keep_alive.c:54
update_client()::h
update_client()
keep_alive.c:72
remove_client()::h
remove_client()
keep_alive.c:83
add_new_client()::h
add_new_client()
keep_alive.c:94
return
wss_keep_alive_start()
keep_alive.c:161
wss_keep_alive_stop()::h
wss_keep_alive_stop()
keep_alive.c:185
wss_keep_alive_add_client()::h
wss_keep_alive_add_client()
keep_alive.c:192
wss_keep_alive_remove_client()::h
wss_keep_alive_remove_client()
keep_alive.c:201
wss_keep_alive_client_is_active()::h
wss_keep_alive_client_is_active()
keep_alive.c:210
wss_keep_alive_set_user_ctx()::h
wss_keep_alive_set_user_ctx()
keep_alive.c:221
wss_keep_alive_get_user_ctx()::h
wss_keep_alive_get_user_ctx()
keep_alive.c:226
client_not_alive_cb()::h
client_not_alive_cb()
wss_server_example.c:159
check_client_alive_cb()::h
check_client_alive_cb()
wss_server_example.c:166
Lifecycle
from
examples
wss_keep_alive_storage
is allocated by 1 symbol and is freed by 1 symbol:
wss_keep_alive_start()
All items filtered out
wss_keep_alive_storage
keep_alive_task()
All items filtered out