dart:io
SocketControlMessage class
Control message part of the SocketMessage received by a call to RawSocket.readMessage.
Control messages could carry different information including ResourceHandle. If ResourceHandles are availabe as part of this message, they can be extracted via extractHandles.
Constructors
- SocketControlMessage.fromHandles(List<ResourceHandle> handles)
factory
- Creates a control message containing the provided
handles.
Properties
- data → Uint8List
read-only
- Actual bytes that were passed as part of the control message by the underlying platform.
- hashCode → int
read-only, inherited
- The hash code for this object.
- level → int
read-only
- A platform specific value used to determine the kind of control message.
- runtimeType → Type
read-only, inherited
- A representation of the runtime type of the object.
- type → int
read-only
- A platform specific value used to determine the kind of control message.
Methods
- extractHandles() → List<ResourceHandle>
- Extracts the list of handles embedded in this message.
- noSuchMethod(Invocation invocation) → dynamic
inherited
- Invoked when a non-existent method or property is accessed.
- toString() → String
inherited
- A string representation of this object.
Operators
- operator ==(Object other) → bool
inherited
- The equality operator.