Type Alias openthread_sys::otTcpAcceptDone
source · pub type otTcpAcceptDone = Option<unsafe extern "C" fn(aListener: *mut otTcpListener, aEndpoint: *mut otTcpEndpoint, aPeer: *const otSockAddr)>;
Expand description
This callback indicates that the TCP connection is now ready for two-way communication.
In the case of TCP Fast Open, this may be before the TCP connection handshake has actually completed. The application is provided with the context pointers both for the TCP listener that accepted the connection and the TCP endpoint into which it was accepted. The provided context is the one associated with the TCP listener.
@param[in] aListener The TCP listener that matches the incoming connection. @param[in] aEndpoint The TCP endpoint into which the incoming connection was accepted. @param[in] aPeer the host and port from which the incoming connection originated.
Aliased Type§
enum otTcpAcceptDone {
None,
Some(unsafe extern "C" fn(_: *mut otTcpListener, _: *mut otTcpEndpoint, _: *const otSockAddr)),
}
Variants§
None
No value.
Some(unsafe extern "C" fn(_: *mut otTcpListener, _: *mut otTcpEndpoint, _: *const otSockAddr))
Some value of type T
.