ot::Ip6::Tcp::Endpoint::GetLocalAddress() const method
Obtains a pointer to a TCP endpoint's local host and port. The contents of the host and port may be stale if this socket is not in a connected state and has not been bound after it was last disconnected. @sa otTcpGetLocalAddress
Syntax
const SockAddr &GetLocalAddress(void) const; Return value
The local host and port of this Endpoint.