[][src]Trait embedded_nal::UdpServer

pub trait UdpServer: UdpClient {
    pub fn bind(
        &self,
        socket: &mut Self::UdpSocket,
        local_port: u16
    ) -> Result<(), Self::Error>;
pub fn send_to(
        &self,
        socket: &mut Self::UdpSocket,
        remote: SocketAddr,
        buffer: &[u8]
    ) -> Result<(), Self::Error>; }

This trait is implemented by UDP/IP stacks. It provides the ability to listen for packets on a specified port and send replies.

Required methods

pub fn bind(
    &self,
    socket: &mut Self::UdpSocket,
    local_port: u16
) -> Result<(), Self::Error>
[src]

Bind a UDP socket with a specified port

pub fn send_to(
    &self,
    socket: &mut Self::UdpSocket,
    remote: SocketAddr,
    buffer: &[u8]
) -> Result<(), Self::Error>
[src]

Send a packet to a remote host/port.

Loading content...

Implementors

Loading content...