async-net icon indicating copy to clipboard operation
async-net copied to clipboard

Provide a `TcpSocket` abstraction

Open piegamesde opened this issue 2 years ago • 1 comments

I'd like to have a TcpSocket implementation like in Tokio (I don't really want to depend on the Tokio runtime just for this feature). I know that there are workarounds, but an async-first, easy to use implementation would be really appreciated.

piegamesde avatar Sep 13 '21 23:09 piegamesde

Since async-net already depends on socket2 via async-io, this could probably be implemented in a way that wraps socket2. (Most of the work probably needs to be done on the async-net side to avoid making socket2 a public dependency.)

taiki-e avatar Sep 14 '21 17:09 taiki-e