[][src]Type Definition openthread_sys::otUdpForwarder

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

This function 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.