ESP-IDF
ot::Ip6::Udp::SocketHandle::GetPeerName()
is only used within ESP-IDF.
Symbol previews are coming soon...
Symbols
loading...
Files
loading (1/5)...
Summary
Syntax
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
ESP-IDF
ot::Ip6::Udp::SocketHandle::GetPeerName()
ot::Ip6::Udp::SocketHandle::GetPeerName() method
Returns the peer's socket address.
Syntax
Show:
Summary
Declaration
from
udp6.hpp:122
SockAddr
&
GetPeerName
(
void
)
;
Return value
A reference to the peer's socket address.
Examples
References
from
examples
Code
Location
Scope
Referrer
SockAddr
&
GetPeerName
(
void
)
{
return
AsCoreType
(
&
mPeerName
)
;
}
udp6.hpp:122
aSocket
.
GetPeerName
(
)
.
Clear
(
)
;
udp6.cpp:310
ot::Ip6::Udp
ot::Ip6::Udp::Close()
VerifyOrExit
(
!
aSocket
.
GetPeerName
(
)
.
GetAddress
(
)
.
IsUnspecified
(
)
,
error
=
kErrorInvalidArgs
)
;
udp6.cpp:328
ot::Ip6::Udp
ot::Ip6::Udp::SendTo()
messageInfoLocal
.
SetPeerAddr
(
aSocket
.
GetPeerName
(
)
.
GetAddress
(
)
)
;
udp6.cpp:330
ot::Ip6::Udp
ot::Ip6::Udp::SendTo()
VerifyOrExit
(
aSocket
.
GetPeerName
(
)
.
mPort
!=
0
,
error
=
kErrorInvalidArgs
)
;
udp6.cpp:335
ot::Ip6::Udp
ot::Ip6::Udp::SendTo()
messageInfoLocal
.
mPeerPort
=
aSocket
.
GetPeerName
(
)
.
mPort
;
udp6.cpp:336
ot::Ip6::Udp
ot::Ip6::Udp::SendTo()
Call Tree
from
examples
ot::Ip6::Udp::SocketHandle::GetPeerName()
is called by 2 functions:
ot::Ip6::Udp::Close()
ot::Ip6::Udp::SendTo()
All items filtered out
ot::Ip6::Udp::SocketHandle::GetPeerName()
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
Lifecycle
from
examples
All items filtered out
All items filtered out