RawSocketOption classfinal
TheRawSocketOption is used as a parameter toSocket.setRawOption andRawSocket.setRawOption to customize the behaviour of the underlyingsocket.
It allows for fine grained control of the socket options, and its valueswill be passed to the underlying platform's implementation of setsockopt andgetsockopt.
Constructors
- RawSocketOption(intlevel,intoption,Uint8Listvalue)
- Creates aRawSocketOption forRawSocket.getRawOptionandRawSocket.setRawOption.const
- RawSocketOption.fromBool(intlevel,intoption,boolvalue)
- Convenience constructor for creating a boolean basedRawSocketOption.factory
- RawSocketOption.fromInt(intlevel,intoption,intvalue)
- Convenience constructor for creating an integer basedRawSocketOption.factory
Properties
- hashCode→int
- The hash code for this object.no setterinherited
- level→int
- The level for the option to set or get.final
- option→int
- The numeric ID of the option to set or get.final
- runtimeType→Type
- A representation of the runtime type of the object.no setterinherited
- value→Uint8List
- The raw data to set, or the array to write the current option value into.final
Methods
- noSuchMethod(
Invocationinvocation)→ dynamic - Invoked when a nonexistent method or property is accessed.inherited
- toString(
)→String - A string representation of this object.inherited
Operators
- operator ==(
Objectother)→bool - The equality operator.inherited
Static Properties
- IPv4MulticastInterface→int
- Socket option for
IP_MULTICAST_IF.no setter - IPv6MulticastInterface→int
- Socket option for
IPV6_MULTICAST_IF.no setter - levelIPv4→int
- Socket level option for
IPPROTO_IP.no setter - levelIPv6→int
- Socket level option for
IPPROTO_IPV6.no setter - levelSocket→int
- Socket level option for
SOL_SOCKET.no setter - levelTcp→int
- Socket level option for
IPPROTO_TCP.no setter - levelUdp→int
- Socket level option for
IPPROTO_UDP.no setter