Crate socks2

Source
Expand description

SOCKS proxy clients

Structs§

Iter
An iterator over SocketAddrs associated with a TargetAddr.
Socks4Listener
A SOCKS4 and SOCKS4A BIND client.
Socks4Stream
A SOCKS4 and SOCKS4A client.
Socks5Datagram
A SOCKS5 and SOCKS5H UDP client.
Socks5Listener
A SOCKS5 and SOCKS5H BIND client.
Socks5Stream
A SOCKS5 and SOCKS5H client.

Enums§

Error
Errors from socks2
TargetAddr
A description of a connection target.

Traits§

ToTargetAddr
A trait for objects that can be converted to TargetAddr.

Functions§

is_io_socks2_error
Takes an std::io::Error and determines if it wraps a socks2::Error;
unwrap_io_to_socks2_error
Takes an std::io::Error and attempts to unwrap it into a socks2::Error. Returns a Some(&socks2::Error) on success.