get_opt
static int get_opt(int fd, int level, int name);
curval = get_opt(fd, SOL_SOCKET, SO_SNDBUF);
curval = get_opt(fd, SOL_SOCKET, SO_RCVBUF);