SocketControlMessage class - dart:io library (original) (raw)

Control message part of the SocketMessage received by a call toRawSocket.readMessage.

Control messages could carry different information includingResourceHandle. If ResourceHandles are available as part of this message, they can be extracted via extractHandles.

Constructors

SocketControlMessage.fromHandles(List<ResourceHandle> handles)

Creates a control message containing the provided handles.

factory

Properties

dataUint8List

Actual bytes that were passed as part of the control message by the underlying platform.

no setter

hashCodeint

The hash code for this object.

no setterinherited

levelint

A platform specific value used to determine the kind of control message.

no setter

runtimeTypeType

A representation of the runtime type of the object.

no setterinherited

typeint

A platform specific value used to determine the kind of control message.

no setter

Methods

extractHandles()→ List<ResourceHandle>

Extracts the list of handles embedded in this message.

noSuchMethod(Invocation invocation)→ dynamic

Invoked when a nonexistent method or property is accessed.

inherited

toString()→ String

A string representation of this object.

inherited

Operators

operator ==(Object other)→ bool

The equality operator.

inherited