wss_server sample
client_fd_action_t::fd
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
client_fd_action_t::fd
client_fd_action_t::fd field
Syntax
Show:
Summary
Declaration
from
keep_alive.c:29
int
fd
;
Examples
References
from
examples
Code
Location
Referrer
int
fd
;
keep_alive.c:29
if
(
h
->
clients
[
i
]
.
type
==
CLIENT_ACTIVE
&&
h
->
clients
[
i
]
.
fd
==
sockfd
)
{
keep_alive.c:75
update_client()
if
(
h
->
clients
[
i
]
.
type
==
CLIENT_ACTIVE
&&
h
->
clients
[
i
]
.
fd
==
sockfd
)
{
keep_alive.c:86
remove_client()
h
->
clients
[
i
]
.
fd
=
-
1
;
keep_alive.c:88
remove_client()
h
->
clients
[
i
]
.
fd
=
sockfd
;
keep_alive.c:99
add_new_client()
if
(
!
add_new_client
(
keep_alive_storage
,
client_action
.
fd
)
)
{
keep_alive.c:117
keep_alive_task()
if
(
!
remove_client
(
keep_alive_storage
,
client_action
.
fd
)
)
{
keep_alive.c:122
keep_alive_task()
ESP_LOGE
(
TAG
,
"Cannot remove client fd:%d"
,
client_action
.
fd
)
;
keep_alive.c:123
keep_alive_task()
if
(
!
update_client
(
keep_alive_storage
,
client_action
.
fd
,
client_action
.
last_seen
)
)
{
keep_alive.c:127
keep_alive_task()
ESP_LOGE
(
TAG
,
"Cannot find client fd:%d"
,
client_action
.
fd
)
;
keep_alive.c:128
keep_alive_task()
ESP_LOGD
(
TAG
,
"Haven't seen the client (fd=%d) for a while"
,
keep_alive_storage
->
clients
[
i
]
.
fd
)
;
keep_alive.c:143
keep_alive_task()
ESP_LOGE
(
TAG
,
"Client (fd=%d) not alive!"
,
keep_alive_storage
->
clients
[
i
]
.
fd
)
;
keep_alive.c:145
keep_alive_task()
keep_alive_storage
->
client_not_alive_cb
(
keep_alive_storage
,
keep_alive_storage
->
clients
[
i
]
.
fd
)
;
keep_alive.c:146
keep_alive_task()
keep_alive_storage
->
check_client_alive_cb
(
keep_alive_storage
,
keep_alive_storage
->
clients
[
i
]
.
fd
)
;
keep_alive.c:148
keep_alive_task()
client_fd_action_t
client_fd_action
=
{
.
fd
=
fd
,
.
type
=
CLIENT_FD_ADD
}
;
keep_alive.c:194
wss_keep_alive_add_client()
client_fd_action_t
client_fd_action
=
{
.
fd
=
fd
,
.
type
=
CLIENT_FD_REMOVE
}
;
keep_alive.c:203
wss_keep_alive_remove_client()
client_fd_action_t
client_fd_action
=
{
.
fd
=
fd
,
.
type
=
CLIENT_UPDATE
,
keep_alive.c:212
wss_keep_alive_client_is_active()
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
client_fd_action_t::fd
is written by 2 functions and is read by 3 functions:
remove_client()
add_new_client()
All items filtered out
client_fd_action_t::fd
update_client()
remove_client()
keep_alive_task()
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
Lifecycle
from
examples
All items filtered out
All items filtered out