RawSocketOption.fromBool constructor

RawSocketOption.fromBool(
  1. int level,
  2. int option,
  3. bool value
)

Convenience constructor for creating a boolean based RawSocketOption.

Implementation

factory RawSocketOption.fromBool(int level, int option, bool value) =>
    RawSocketOption.fromInt(level, option, value ? 1 : 0);