Movatterモバイル変換


[0]ホーム

URL:


menu
  1. Dart
  2. dart:io
  3. RawSocketOption class
RawSocketOption
description

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

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(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

IPv4MulticastInterfaceint
Socket option forIP_MULTICAST_IF.
no setter
IPv6MulticastInterfaceint
Socket option forIPV6_MULTICAST_IF.
no setter
levelIPv4int
Socket level option forIPPROTO_IP.
no setter
levelIPv6int
Socket level option forIPPROTO_IPV6.
no setter
levelSocketint
Socket level option forSOL_SOCKET.
no setter
levelTcpint
Socket level option forIPPROTO_TCP.
no setter
levelUdpint
Socket level option forIPPROTO_UDP.
no setter
  1. Dart
  2. dart:io
  3. RawSocketOption class
dart:io library

[8]ページ先頭

©2009-2025 Movatter.jp