Module capsules_extra::net::udp::udp_recv
source · Expand description
This file contains the definition and implementation for the UDP reception
interface. It follows the same virtualization model as that described in udp_send.rs
,
except that no queueing is needed because received packets are immediately dispatched to the
appropriate capsule / app. Once again, port binding for userspace apps is managed separately
by the UDP userspace driver, which must correctly check bindings of kernel apps to ensure
correctness when dispatching received packets to the appropriate client.
Structs§
- This struct is set as the client of the MuxUdpReceiver, and passes received packets up to whatever app layer client assigns itself as the UDPRecvClient held by this UDPReceiver.
Traits§
- The UDP driver implements this client interface trait to receive packets passed up the network stack to the UDPReceiver, and then distributes them to userland applications from there. Kernel apps can also instantiate structs that implement this trait in order to receive UDP packets