IClient class abstract

Defines methods, properties, and events which every transport's client must implement.

Implementers

Constructors

IClient()

Properties

connected ↔ Event
Invoked when a connection is established at the transport level.
getter/setter pair
connectionFailed ↔ Event
Invoked when a connection attempt fails at the transport level.
getter/setter pair
dataReceived ↔ Event<DataReceivedEventArgs>
Invoked when data is received by the transport.
getter/setter pairinherited
disconnected ↔ Event<DisconnectedEventArgs>
Invoked when a disconnection is initiated or detected by the transport.
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

connect(InternetAddress hostAddress, int port) Future<(bool, Connection?, String)>
Starts the transport and attempts to connect to the given host address.
disconnect() → void
Closes the connection to the server.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
poll() → void
Initiates handling of any received messages.
inherited
toString() String
A string representation of this object.
inherited

Operators

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