dart:io
RawSocketOption class
The RawSocketOption is used as a parameter to Socket.setRawOption and RawSocket.setRawOption to set customize the behaviour of the underlying socket.
It allows for fine grained control of the socket options, and its values will be passed to the underlying platform's implementation of setsockopt and getsockopt.
- Annotations
Constructors
- RawSocketOption(int level, int option, Uint8List value)
const
- Creates a RawSocketOption for getRawOption andSetRawOption. [...]
- RawSocketOption.fromBool(int level, int option, bool value)
factory
- Convenience constructor for creating a bool based RawSocketOption.
- RawSocketOption.fromInt(int level, int option, int value)
factory
- Convenience constructor for creating an int based RawSocketOption.
Properties
- level → int
final
- The level for the option to set or get. [...]
- option → int
final
- The option to set or get.
- value → Uint8List
final
- The raw data to set, or the array to write the current option value into. [...]
- 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. [...]
- toString() → String
inherited
- Returns a string representation of this object.
Operators
- operator ==(dynamic other) → bool
inherited
- The equality operator. [...]
Static Properties
- IPv4MulticastInterface → int
read-only
- Socket option for IP_MULTICAST_IF.
- IPv6MulticastInterface → int
read-only
- Socket option for IPV6_MULTICAST_IF.
- levelIPv4 → int
read-only
- Socket level option for IPPROTO_IP.
- levelIPv6 → int
read-only
- Socket level option for IPPROTO_IPV6.
- levelSocket → int
read-only
- Socket level option for SOL_SOCKET.
- levelTcp → int
read-only
- Socket level option for IPPROTO_TCP.
- levelUdp → int
read-only
- Socket level option for IPPROTO_UDP.