SocksServer class
Socks server.
Constructors
- SocksServer({AuthHandler? authHandler, LookupFunction lookup = InternetAddress.lookup})
- Create new Socks server.
Properties
- authHandler ↔ AuthHandler?
-
Authentication handler.
getter/setter pair
-
connections
→ Stream<
Connection> -
Client connections.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- lookup ↔ LookupFunction
-
Can be overridden/set to be custom domain lookup function.
getter/setter pair
-
proxies
↔ Map<
int, ServerSocket> -
Map of proxy servers indexed by their port
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addServerSocket(
ServerSocket server) → Future< void> - Add already bound ServerSocket.
-
bind(
InternetAddress address, int port) → Future< void> -
Bind Socks server to given
address
andport
. -
close(
int port) → Future< void> -
Closes proxy server listening on
port
. To close all server use closeAll method. -
closeAll(
) → Future< void> - Closes all proxy servers. To close specific server use close method.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
stop(
) → Future< void> - Closes all connections and closes connection controller no more servers can be bound to this instance.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited