embedded-nal icon indicating copy to clipboard operation
embedded-nal copied to clipboard

Bind to IP

Open niclashoyer opened this issue 5 years ago • 0 comments

Currently the docs for bind state:

Create a new TCP/UDP socket and bind it to the specified local port.

While trying to implement UdpServer / UdpFullStack for std-embedded-nal I noticed that usually these sockets are also bound to specific IPs / interfaces:

pub fn bind<A: ToSocketAddrs>(addr: A) -> Result<UdpSocket>

How is this supposed to work with the embedded_nal traits?

niclashoyer avatar Jan 17 '21 00:01 niclashoyer