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

Add TcpListener::accept_std #733

Merged
merged 1 commit into from Sep 28, 2017

Conversation

Projects
None yet
2 participants
@alexcrichton
Copy link
Contributor

alexcrichton commented Sep 21, 2017

This commit adds an accept_std method to TcpListener which is added with
the intention of helping downstream libraries improve interoperability without
exposing mio as a public dependency. The TcpStream type is already
convertible from a raw std::net::TcpStream, so it should be possible to
quickly reassociate this socket back with mio.

Add TcpListener::accept_std
This commit adds an `accept_std` method to `TcpListener` which is added with
the intention of helping downstream libraries improve interoperability without
exposing `mio` as a public dependency. The `TcpStream` type is already
convertible from a raw `std::net::TcpStream`, so it should be possible to
quickly reassociate this socket back with mio.

@alexcrichton alexcrichton force-pushed the alexcrichton:raw-accept branch from 38917e0 to 09a7df9 Sep 26, 2017

@carllerche carllerche merged commit 878bee8 into carllerche:master Sep 28, 2017

2 checks passed

continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.