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

Socket class

*<Null safety>*

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

Returns a string representation of this object.
inherited

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

Operators

operator ==(Object other) bool

The equality operator. ...
inherited

Constants

CONTROL const int
CONTROL_READABLE const int
CONTROL_WRITABLE const int
DATAGRAM const int
HAS_CONTROL const int
PEER_CLOSED const int
READ_DISABLED const int
READABLE const int
SHUTDOWN_READ const int
SHUTDOWN_WRITE const int
STREAM const int
WRITABLE const int
WRITE_DISABLED const int