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

The RawSocketOption is used as a parameter to Socket.setRawOption andRawSocket.setRawOption to 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)

Creates a RawSocketOption for RawSocket.getRawOptionand RawSocket.setRawOption.

const

RawSocketOption.fromBool(int level, int option, bool value)

Convenience constructor for creating a boolean based RawSocketOption.

factory

RawSocketOption.fromInt(int level, int option, int value)

Convenience constructor for creating an integer based RawSocketOption.

factory

Properties

hashCodeint

The hash code for this object.

no setterinherited

levelint

The level for the option to set or get.

final

optionint

The numeric ID of the option to set or get.

final

runtimeTypeType

A representation of the runtime type of the object.

no setterinherited

valueUint8List

The raw data to set, or the array to write the current option value into.

final

Methods

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

Static Properties

IPv4MulticastInterfaceint

Socket option for IP_MULTICAST_IF.

no setter

IPv6MulticastInterfaceint

Socket option for IPV6_MULTICAST_IF.

no setter

levelIPv4int

Socket level option for IPPROTO_IP.

no setter

levelIPv6int

Socket level option for IPPROTO_IPV6.

no setter

levelSocketint

Socket level option for SOL_SOCKET.

no setter

levelTcpint

Socket level option for IPPROTO_TCP.

no setter

levelUdpint

Socket level option for IPPROTO_UDP.

no setter