pub unsafe extern "C" fn otTcpGetPeerAddress(
aEndpoint: *const otTcpEndpoint,
) -> *const otSockAddr
Expand description
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.
@param[in] aEndpoint The TCP endpoint whose peer’s host and port to obtain.
@returns The host and port of the connection peer of @p aEndpoint.