SocketLane class final

One explicitly approved network lane.

Constructors

SocketLane({required String host, int? port})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
host String
The lane host. A leading dot (.example.com) approves the whole subdomain tree including the apex domain.
final
port int?
Optional port constraint; null approves every port on host.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

matches(String candidateHost, int candidatePort) bool
Whether a connection attempt to candidateHost:candidatePort is approved by this lane.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

parse(Object? data) SocketLane
Parses a lane from config data: a plain host string, or a map with host / optional port keys.