int getsockopt(int fd, int level, int optname, void* optval, socklen_t* optlen);
Retrieves the value of an option for socket fd.
int getsockopt(int fd, int level, int optname, void* optval, socklen_t* optlen);
Retrieves the value of an option for socket fd.