bool setOption(
SocketOption option,
bool enabled
)

Use setOption to customize the RawSocket. See SocketOption for available options.

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

Source

/**
 * Use [setOption] to customize the [RawSocket]. See [SocketOption] for
 * available options.
 *
 * Returns [:true:] if the option was set successfully, false otherwise.
 */
bool setOption(SocketOption option, bool enabled);