Why must the fourth parameter of the setsockopt function and getsockopt function be a pointer?
When I was learning network programming, I noticed two functions, namely setsockopt()
and getsockopt()
. Among them, their fourth parameter is a pointer. However, in practical use, I feel that the fourth parameter almost always transfers numbers or Boolean values. So what is the meaning of using the fourth parameter as a pointer?