dart / 2 / dart-io / rawsocket / setoption.html

setOption method

bool setOption(
  1. SocketOption option,
  2. bool enabled
)

Customize the RawSocket.

See SocketOption for available options.

Returns true if the option was set successfully, false otherwise.

Implementation

bool setOption(SocketOption option, bool enabled);

© 2012 the Dart project authors
Licensed under the BSD 3-Clause "New" or "Revised" License.
https://api.dart.dev/stable/2.18.5/dart-io/RawSocket/setOption.html