dizda/fast-socks5

feature request: ability for read/write size for regular socks5 usage

GlenDC opened this issue · 2 comments

In the case of your server example (so a direct usage of your socket (client<->socket<->target) it currently doesn't seem to be possible to get the bytes read/written? Would this be possible, I imagine so?

I also wonder in general if we cannot keep track of the total bytes read/written in the the sockets. Such that we can provide a method to give the total bytes read/written, even in case of errors returned, it might still be useful (I would def like to know) how much bytes already were transferred.

This one is probably not required for me. As I'm doing all the actual data transfer using tokio's bidirectional copy, that function is really sufficient for me. If others do want it for regular usage, this issue can be re-opened none the less.