lemunozm / message-io

Fast and easy-to-use event-driven network library.
Apache License 2.0
1.11k stars 74 forks source link

Improve `RemoteAddr` usage #55

Closed lemunozm closed 3 years ago

lemunozm commented 3 years ago

RemoteAddr is very similar to SocketAddr (a kind of extended form of this). One of the biggest points of SocketAddr is that it is really comfortable to use because to the From and ToSocketAddrs trait implementations.

The aim is to give a similar level of support to RemoteAddr using both From and ToRemoteAddr, to make it as cool as SocketAddr.