openthread_sys

Type Alias otTcpSendDone

Source
pub type otTcpSendDone = Option<unsafe extern "C" fn(aEndpoint: *mut otTcpEndpoint, aData: *mut otLinkedBuffer)>;
Expand description

This callback informs the application that data in the provided @p aData have been acknowledged by the connection peer and that @p aData and the data it contains can be reclaimed by the application.

The @p aData are guaranteed to be identical to those passed in to TCP via otTcpSendByReference(), including any extensions effected via otTcpSendByExtension().

@param[in] aEndpoint The TCP endpoint for the connection. @param[in] aData A pointer to the otLinkedBuffer that can be reclaimed.

Aliased Type§

enum otTcpSendDone {
    None,
    Some(unsafe extern "C" fn(_: *mut otTcpEndpoint, _: *mut otLinkedBuffer)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *mut otTcpEndpoint, _: *mut otLinkedBuffer))

Some value of type T.