pub struct Server { /* private fields */ }
Expand description

The socks5 server itself.

The server can be constructed on a given socket address, or be created on a existing TcpListener.

The authentication method can be configured with the Auth trait.

Implementations

Create a new socks5 server with the given TCP listener and authentication method.

Create a new socks5 server on the given socket address and authentication method.

Accept an IncomingConnection. The connection may not be a valid socks5 connection. You need to call IncomingConnection::handshake() to hand-shake it into a proper socks5 connection.

Get the the local socket address binded to this server

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.