setOption method

  1. @override
bool setOption(
  1. SocketOption option,
  2. bool enabled
)
inherited

Customizes the RawSocket.

See SocketOption for available options.

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

Throws a SocketException if the socket has been destroyed or upgraded to a secure socket.

Implementation

@override
bool setOption(SocketOption option, bool enabled) =>
    socket.setOption(option, enabled);