RawSocketOption.fromBool constructor

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

Convenience constructor for creating a bool based RawSocketOption.

Implementation

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