Function tokio_socks5::serve
[−]
[src]
pub fn serve(
conn: TcpStream
) -> Box<Future<Item = (TcpStream, String, u16), Error = Error>>
Creates a future which will handle socks5 connection.
if success The returned future will the handled TcpStream
and address. if handle shake fail will
return io::Error
.