SocksServer class
Socks server.
Constructors
- SocksServer.new({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 overriden/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
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited