setsockopt or getsockopt (BPX1OPT, BPX4OPT) — Get or set options associated with a socket

See getsockopt or setsockopt (BPX1OPT, BPX4OPT) — Get or set options associated with a socket.