Function openthread_sys::otTcpGetLocalAddress

source ·
pub unsafe extern "C" fn otTcpGetLocalAddress(
    aEndpoint: *const otTcpEndpoint,
) -> *const otSockAddr
Expand description

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.

@param[in] aEndpoint The TCP endpoint whose local host and port to obtain.

@returns The local host and port of @p aEndpoint.