Trait capsules_extra::net::udp::udp_recv::UDPRecvClient
source · pub trait UDPRecvClient {
// Required method
fn receive(
&self,
src_addr: IPAddr,
dst_addr: IPAddr,
src_port: u16,
dst_port: u16,
payload: &[u8],
);
}
Expand description
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