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

Example (binding a TCP socket to two addresses) doesn't work #14

Closed
AGWA opened this issue Jan 27, 2018 · 1 comment
Closed

Example (binding a TCP socket to two addresses) doesn't work #14

AGWA opened this issue Jan 27, 2018 · 1 comment

Comments

@AGWA
Copy link

AGWA commented Jan 27, 2018

The documentation shows this crate being used to bind a TCP socket to two addresses. This doesn't work on any OS that I'm familiar with - the second bind returns EINVAL since the socket is already bound. I suggest providing a different example, as the example led me to believe that this crate had higher-level functionality that would abstract the use of multiple sockets to listen on multiple addresses.

Tasks

No tasks being tracked yet.
@alexcrichton
Copy link
Member

Thanks for the report!

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

2 participants