openthread_sys

Type Alias otUdpForwarder

Source
pub type otUdpForwarder = Option<unsafe extern "C" fn(aMessage: *mut otMessage, aPeerPort: u16, aPeerAddr: *mut otIp6Address, aSockPort: u16, aContext: *mut c_void)>;
Expand description

Pointer delivers the UDP packet to host and host should send the packet through its own network stack.

@param[in] aMessage A pointer to the UDP Message. @param[in] aPeerPort The destination UDP port. @param[in] aPeerAddr A pointer to the destination IPv6 address. @param[in] aSockPort The source UDP port. @param[in] aContext A pointer to application-specific context.

Aliased Type§

enum otUdpForwarder {
    None,
    Some(unsafe extern "C" fn(_: *mut otMessage, _: u16, _: *mut otIp6Address, _: u16, _: *mut c_void)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *mut otMessage, _: u16, _: *mut otIp6Address, _: u16, _: *mut c_void))

Some value of type T.