Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bind to IP #41

Open
niclashoyer opened this issue Jan 17, 2021 · 0 comments
Open

Bind to IP #41

niclashoyer opened this issue Jan 17, 2021 · 0 comments

Comments

@niclashoyer
Copy link

niclashoyer commented Jan 17, 2021

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant