Calls getsockopt() to obtain the value of a socket option.
Notes:
- The actual value data type T depends on the particular option. If
the returned value differs from val.sizeof on success, the wrong
type was used and val contains most likely junk.
- T = bool is internally substituted by int and therefore suitable
for flag options.
Calls getsockopt() to obtain the value of a socket option.
Notes: - The actual value data type T depends on the particular option. If the returned value differs from val.sizeof on success, the wrong type was used and val contains most likely junk. - T = bool is internally substituted by int and therefore suitable for flag options.