Crate proxied

Source
Expand description

§Proxied

Asynchronous proxy TCP connector

Includes:

  • No unsafe code
  • SOCKS4/5 and HTTP(s) proxies support
  • Single structure for both types of proxies
  • TCPStream-like connection (see TCPConnection)
  • Password authentication

§How-to

Main entrypoint is Proxy structure. It contains connection data about proxy like protocol, address port and credentials. Additionally it supports IP refreshment link, although user is expected to manually request it.

To create a TCP connection, call Proxy::connect_tcp. After it is created, it can be used just like regural TCP stream, as it implements AsyncRead and AsyncWrite.

Modules§

parse

Structs§

Proxy
Proxy connection data
TCPConnection
TCP Tunnel through proxy server

Enums§

ConnectError
NetworkTarget
Target for proxy for connection, in form of DNS name or socket’s IP Address
ProxyKind
Proxy protocol