ReqRespConnection class

Constructors

ReqRespConnection(BufferedSocket _socket, Handler? _handler, Completer? handshakeCompleter, int _maxPacketSize)

Properties

hashCode int
The hash code for this object.
no setterinherited
pool → Pool
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() → void
handleError(Object e, {bool keepOpen = false, StackTrace? st}) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
processHandler<T>(Handler handler, Duration timeout) Future<T>
The 3 functions below this line are the main interface to the running handlers on the connection. Each function MUST queue the handlers in the pool and MUST tidy up the connection (leave _handler null) before finishing.
processHandlerNoResponse(Handler handler, Duration timeout) Future<void>
processHandlerWithResults(Handler handler, Duration timeout) Future<Results>
sendBuffer(Buffer buffer) Future
toString() String
A string representation of this object.
inherited

Operators

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

Constants

COMPRESSED_HEADER_SIZE → const int
HEADER_SIZE → const int
STATE_PACKET_DATA → const int
STATE_PACKET_HEADER → const int