pub unsafe extern "C" fn otTcpListen(
    aListener: *mut otTcpListener,
    aSockName: *const otSockAddr
) -> otError
Expand description

Causes incoming TCP connections that match the specified IP address and port to trigger this TCP listener’s callbacks.

@param[in] aListener A pointer to the TCP listener structure that should begin listening. @param[in] aSockName The address and port on which to listen for incoming connections.

@retval OT_ERROR_NONE Successfully initiated listening on the TCP listener. @retval OT_ERROR_FAILED Failed to initiate listening on the TCP listener.