Skip to content

Require <S: Read + Write> instead of TcpStream #6

Open
@sciguy16

Description

Hi, I would like to be able to connect to VNC servers via a SOCKS proxy, but the Client::from_tcp_stream method requires a TcpStream. If this is changed to a generic type that implements Read+Write then it will be compatible with other types of streams, like Socks5Stream from the 'socks' crate.

pub fn from_tcp_stream<Auth>(mut stream: TcpStream, shared: bool,

I'm happy to contribute a PR for this, and also to update the code for Rust 2018 if you'd like.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions