Endpoint class

Multiplexes grpc-dc streams over one Transport.

Constructors

Endpoint(Transport _transport, {required bool creator})
The side that created the channel allocates odd stream ids, the answerer even. The read loop starts on start — after any dispatcher is installed, so an early HEADERS can never race dispatcher setup.

Properties

dispatcher ↔ Dispatcher?
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

cancelStream(int id) → void
Abort one stream: RST out; a pending recv wakes with CANCELLED.
close() → Future<void>
closeStream(int id) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
openStream() → ({int id, StreamInput input})
sendFrame(Uint8List frame) → void
start() → void
Start the read loop (idempotent).
toString() → String
A string representation of this object.
inherited

Operators

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