dart:io
ResourceHandle class
A wrappper around OS resource handle so it can be passed via Socket as part of SocketMessage.
Constructors
- ResourceHandle.fromFile(RandomAccessFile file)
factory
- Creates wrapper around opened file.
- ResourceHandle.fromRawDatagramSocket(RawDatagramSocket socket)
factory
- Creates wrapper around opened raw datagram socket.
- ResourceHandle.fromRawSocket(RawSocket socket)
factory
- Creates wrapper around opened raw socket.
- ResourceHandle.fromSocket(Socket socket)
factory
- Creates wrapper around opened socket.
- ResourceHandle.fromStdin(Stdin stdin)
factory
- Creates wrapper around current stdin.
- ResourceHandle.fromStdout(Stdout stdout)
factory
- Creates wrapper around current stdout.
Properties
- hashCode → int
read-only, inherited
- The hash code for this object.
- runtimeType → Type
read-only, inherited
- A representation of the runtime type of the object.
Methods
- noSuchMethod(Invocation invocation) → dynamic
inherited
- Invoked when a non-existent method or property is accessed.
- toFile() → RandomAccessFile
- Extracts opened file from resource handle.
- toRawDatagramSocket() → RawDatagramSocket
- Extracts opened raw datagram socket from resource handle.
- toRawSocket() → RawSocket
- Extracts opened raw socket from resource handle.
- toSocket() → Socket
- Extracts opened socket from resource handle.
- toString() → String
inherited
- A string representation of this object.
Operators
- operator ==(Object other) → bool
inherited
- The equality operator.