BufferedSocket class

Properties

closed bool
no setter
hashCode int
The hash code for this object.
no setterinherited
log → Logger
final
onClosed ClosedHandler?
getter/setter pair
onDataReady DataReadyHandler?
When data arrives and there is no read currently in progress, the onDataReady handler is called.
getter/setter pair
onDone DoneHandler?
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(Buffer buffer) Future<Buffer>
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
toString() String
A string representation of this object.
inherited
writeBuffer(Buffer buffer) Future<Buffer>
Writes buffer to the socket, and returns the same buffer in a Future which completes when it has all been written.
writeBufferPart(Buffer buffer, int start, int length) Future<Buffer>

Operators

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

Static Methods

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