restful_server sample
mdns_name_t::host
is only used within restful_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
restful_server sample
mdns_name_t::host
mdns_name_t::host field
Syntax
Show:
Summary
Declaration
from
mdns_private.h:210
char
host
[
MDNS_NAME_BUF_LEN
]
;
Examples
References
from
examples
Code
Location
Referrer
char
host
[
MDNS_NAME_BUF_LEN
]
;
// hostname for A/AAAA records, instance name for SRV records
mdns_private.h:210
strlcat
(
name
->
host
,
"."
,
sizeof
(
name
->
host
)
)
;
mdns.c:482
_mdns_read_fqdn()
strlcat
(
name
->
host
,
buf
,
sizeof
(
name
->
host
)
)
;
mdns.c:483
_mdns_read_fqdn()
char
*
mdns_name_ptrs
[
]
=
{
name
->
host
,
name
->
service
,
name
->
proto
,
name
->
domain
}
;
mdns.c:487
_mdns_read_fqdn()
name
.
host
[
0
]
=
0
;
mdns.c:774
_mdns_append_fqdn()
(
name
->
host
[
0
]
&&
!
strcasecmp
(
name
->
host
,
"_services"
)
)
mdns.c:3280
_mdns_name_is_discovery()
strcasecmp
(
name
->
host
,
_mdns_server
->
hostname
)
==
0
)
{
mdns.c:3299
_mdns_name_is_selfhosted()
if
(
!
_str_null_or_empty
(
name
->
host
)
mdns.c:3327
_mdns_name_is_ours()
&&
_hostname_is_ours
(
name
->
host
)
)
{
mdns.c:3329
_mdns_name_is_ours()
service
=
_mdns_get_service_item_subtype
(
name
->
host
,
name
->
service
,
name
->
proto
)
;
mdns.c:3344
_mdns_name_is_ours()
}
else
if
(
_str_null_or_empty
(
name
->
host
)
)
{
mdns.c:3345
_mdns_name_is_ours()
service
=
_mdns_get_service_item_instance
(
name
->
host
,
name
->
service
,
name
->
proto
,
NULL
)
;
mdns.c:3348
_mdns_name_is_ours()
if
(
name
->
sub
||
_str_null_or_empty
(
name
->
host
)
)
{
mdns.c:3355
_mdns_name_is_ours()
if
(
strcasecmp
(
name
->
host
,
instance
)
==
0
)
{
mdns.c:3366
_mdns_name_is_ours()
name
->
host
[
0
]
=
0
;
mdns.c:3410
_mdns_parse_fqdn()
name
->
host
[
0
]
=
0
;
mdns.c:3427
_mdns_parse_fqdn()
if
(
type
==
MDNS_TYPE_ANY
&&
!
_str_null_or_empty
(
name
->
host
)
)
{
mdns.c:3816
mdns_parse_packet()
if
(
_mdns_strdup_check
(
&
(
question
->
host
)
,
name
->
host
)
mdns.c:3831
mdns_parse_packet()
memcpy
(
browse_result_instance
,
name
->
host
,
MDNS_NAME_BUF_LEN
)
;
mdns.c:3933
mdns_parse_packet()
_mdns_search_result_add_ptr
(
search_result
,
name
->
host
,
name
->
service
,
name
->
proto
,
mdns.c:3943
mdns_parse_packet()
if
(
name
->
host
[
0
]
)
{
mdns.c:3946
mdns_parse_packet()
service
=
_mdns_get_service_item_instance
(
name
->
host
,
name
->
service
,
name
->
proto
,
NULL
)
;
mdns.c:3947
mdns_parse_packet()
if
(
name
->
host
[
0
]
)
{
mdns.c:3975
mdns_parse_packet()
memcpy
(
record
->
host
,
name
->
host
,
MDNS_NAME_BUF_LEN
)
;
mdns.c:3981
mdns_parse_packet()
&&
result
->
instance_name
&&
!
strcmp
(
name
->
host
,
result
->
instance_name
)
)
{
mdns.c:4008
mdns_parse_packet()
result
=
_mdns_search_result_add_ptr
(
search_result
,
name
->
host
,
name
->
service
,
name
->
proto
,
mdns.c:4014
mdns_parse_packet()
_mdns_browse_result_add_srv
(
browse_result
,
name
->
host
,
browse_result_instance
,
browse_result_service
,
mdns.c:4033
mdns_parse_packet()
result
->
hostname
=
mdns_mem_strdup
(
name
->
host
)
;
mdns.c:4040
mdns_parse_packet()
_mdns_search_result_add_srv
(
search_result
,
name
->
host
,
port
,
packet
->
tcpip_if
,
packet
->
ip_protocol
,
ttl
)
;
mdns.c:4043
mdns_parse_packet()
col
=
_mdns_check_srv_collision
(
service
->
service
,
priority
,
weight
,
port
,
name
->
host
,
name
->
domain
)
;
mdns.c:4063
mdns_parse_packet()
&&
result
->
instance_name
&&
!
strcmp
(
name
->
host
,
result
->
instance_name
)
)
{
mdns.c:4120
mdns_parse_packet()
result
=
_mdns_search_result_add_ptr
(
search_result
,
name
->
host
,
name
->
service
,
name
->
proto
,
mdns.c:4126
mdns_parse_packet()
_mdns_browse_result_add_ip
(
browse_result
,
name
->
host
,
&
ip6
,
packet
->
tcpip_if
,
packet
->
ip_protocol
,
ttl
,
out_sync_browse
)
;
mdns.c:4178
mdns_parse_packet()
_mdns_search_result_add_ip
(
search_result
,
name
->
host
,
&
ip6
,
packet
->
tcpip_if
,
packet
->
ip_protocol
,
ttl
)
;
mdns.c:4183
mdns_parse_packet()
_mdns_browse_result_add_ip
(
browse_result
,
name
->
host
,
&
ip
,
packet
->
tcpip_if
,
packet
->
ip_protocol
,
ttl
,
out_sync_browse
)
;
mdns.c:4235
mdns_parse_packet()
_mdns_search_result_add_ip
(
search_result
,
name
->
host
,
&
ip
,
packet
->
tcpip_if
,
packet
->
ip_protocol
,
ttl
)
;
mdns.c:4240
mdns_parse_packet()
if
(
!
strcasecmp
(
name
->
host
,
s
->
instance
)
)
{
mdns.c:4946
_mdns_search_find_from()
if
(
r
->
esp_netif
==
_mdns_get_esp_netif
(
tcpip_if
)
&&
r
->
ip_protocol
==
ip_protocol
&&
!
_str_null_or_empty
(
r
->
hostname
)
&&
!
strcasecmp
(
name
->
host
,
r
->
hostname
)
)
{
mdns.c:4954
_mdns_search_find_from()
if
(
s
->
instance
&&
strcasecmp
(
name
->
host
,
s
->
instance
)
==
0
)
{
mdns.c:4975
_mdns_search_find_from()
if
(
r
->
esp_netif
==
_mdns_get_esp_netif
(
tcpip_if
)
&&
r
->
ip_protocol
==
ip_protocol
&&
!
_str_null_or_empty
(
r
->
hostname
)
&&
!
strcasecmp
(
name
->
host
,
r
->
hostname
)
)
{
mdns.c:7564
_mdns_browse_find_from()
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
mdns_name_t::host
is read by 9 functions:
All items filtered out
mdns_name_t::host
_mdns_read_fqdn()
_mdns_append_fqdn()
_mdns_name_is_discovery()
_mdns_name_is_selfhosted()
_mdns_name_is_ours()
_mdns_parse_fqdn()
mdns_parse_packet()
_mdns_search_find_from()
_mdns_browse_find_from()
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