SocketInfo class
Information about a socket.
- Annotations
Constructors
- SocketInfo({required InternetAddress address, required int port})
-
A const constructor.
const
- SocketInfo.fromJson(Json yaml)
- Parses the socket data from a YAML map.
- SocketInfo.raw(String host, int port)
- Use this constructor to pass in a raw String for the address.
Properties
- address → InternetAddress
-
The IP address of this socket.
final
- hashCode → int
-
The hash code for this object.
no setter
- port → int
-
The port that the socket is connected to.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{InternetAddress? address, int? port}) → SocketInfo - A copy of this configuration, to avoid modifying the original.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Json - This socket's configuration in JSON format.
-
toString(
) → String - A string representation of this object.
Operators
-
operator ==(
Object other) → bool - The equality operator.