ot::Ip6::Tcp::Endpoint::GetPeerAddress() const method
Obtains a pointer to a TCP endpoint's peer's host and port. The contents of the host and port may be stale if this socket is not in a connected state. @sa otTcpGetPeerAddress
Syntax
const SockAddr &GetPeerAddress(void) const; Return value
The host and port of the connection peer of this Endpoint.
![]()
const SockAddr &GetPeerAddress(void) const;