Calls setsockopt() to sets the value of a socket option to val.
Notes:
- The actual value data type T depends on the particular option.
Failure with EINVAL indicates that a type of the wrong size was
used.
- T = bool is internally substituted by int and therefore suitable
for flag options.
Calls setsockopt() to sets the value of a socket option to val.
Notes: - The actual value data type T depends on the particular option. Failure with EINVAL indicates that a type of the wrong size was used. - T = bool is internally substituted by int and therefore suitable for flag options.