Google is committed to advancing racial equity for Black communities. See how.

Socket class

Typed wrapper around a Zircon socket object.

Constructors

Socket (Handle handle)

Properties

handleHandle

read-only, inherited

hashCode → int

The hash code for this object. ...
read-only, inherited

isValid → bool

read-only, inherited

runtimeType → Type

A representation of the runtime type of the object.
read-only, inherited

Methods

close() void

inherited

noSuchMethod(Invocation invocation) dynamic

Invoked when a non-existent method or property is accessed. ...
inherited

passHandle() Handle

inherited

read(int numBytes) ReadResult
toString() String

A string representation of this object. ...
inherited

write(ByteData data, [int options = 0]) WriteResult

Operators

operator ==(Object other) bool

The equality operator. ...
inherited

Constants

DATAGRAM const int
PEER_CLOSED const int
PEER_WRITE_DISABLED const int
READABLE const int
SHUTDOWN_READ const int
SHUTDOWN_WRITE const int
STREAM const int
WRITABLE const int
WRITE_DISABLED const int