RawSocketOption.fromBool constructor

RawSocketOption.fromBool(int level, int option, 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);