BufferedSocket class

Properties

closed → bool
no setter
hashCode → int
The hash code for this object.
no setterinherited
onClosed ↔ ClosedHandler?
getter/setter pair
onDataReady ↔ ClosedHandler?
When data arrives and there is no read currently in progress, the onDataReady handler is called.
getter/setter pair
onDone ↔ ClosedHandler?
getter/setter pair
onError ↔ ErrorHandler?
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readBuffer(ReadBuffer buffer) → Future<ReadBuffer>
Reads into buffer from the socket, and returns the same buffer in a Future which completes when enough bytes have been read to fill the buffer.
startSSL() → Future<void>
toString() → String
A string representation of this object.
inherited
writeBuffer(Uint8List buffer) → Future<void>
Writes buffer to the socket, and returns the same buffer in a Future which completes when it has all been written.
writeBufferPart(Uint8List buffer, int start, int length) → Future<void>

Operators

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

Static Methods

connect(String? host, int? port, {DataReadyHandler? onDataReady, DoneHandler? onDone, ErrorHandler? onError, ClosedHandler? onClosed, SocketFactory socketFactory = defaultSocketFactory}) → Future<BufferedSocket>
defaultSocketFactory(dynamic host, int? port) → Future<RawSocket>