Standards / Extensions | C or C++ | Dependencies |
---|---|---|
z/OS® UNIX | both |
#define _OPEN_SYS_SOCK_EXT
#include <sys/socket.h>
int getibmsockopt(int s, int level, int optname, char *optval, int *optlen);
Like getsockopt(), the getibmsockopt() gets the options associated with a socket in the AF_INET or AF_INET6 domain. Only SOL_SOCKET is supported. This call is for options specific to the IBM® implementation of sockets. Currently, only the SOL_SOCKET level and the socket options SO_NONBLOCKLOCAL and SO_IGNOREINCOMINGPUSH are supported.
The fields b_num_UNITs_sent and b_num_UNITs_received represent cumulative totals for this socket since the time the application was started.
For SO_NONBLOCKLOCAL, optval should point to an integer. getibmsockopt() returns 0 in optval if the socket is in blocking mode, and returns 1 in optval if the socket is in nonblocking mode.
For SO_IGNOREINCOMINGPUSH, optval should point to an integer. getibmsockopt() returns 0 in optval if the option is not set, and returns 1 in optval if the option is set.
If successful, getibmsockopt() returns 0.