Easy as that, every method should be tested and documented. Every use-case should have an example.
This is a feature to add the net2
crate which will let us do cool things
like set the option SO_REUSEADDR
and similar when making TCP connections.
This is discussed in vi/rust-websocket#2.
There are a lot of issues that would be solved if this was evented, such as:
So maybe we should just add tokio
support, or maybe mio
is still used and popular.
We need this to pass more autobahn tests!
In the old crate the stream was split up into a reader and writer stream so you could
have both a BufReader
and a BufWriter
to buffer your operations to gain some speed.
However is doesn't make sense to split the stream up anymore
(see #83)
meaning that we should buffer reads and writes in some other way.
Some work has begun on this, like #91, but is this enough? And what about writing?