z/OS Communications Server: IP Sockets Application Programming Interface Guide and Reference
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


GETSOCKOPT/SETSOCKOPT command values

z/OS Communications Server: IP Sockets Application Programming Interface Guide and Reference
SC27-3660-00

You can use the following table to determine the decimal or hexadecimal value associated with the GETSOCKOPT/SETSOCKOPT OPTNAMES supported by the APIs discussed in this document.

The command names are shown with underscores for the assembler language. The underscores should be changed to dashes if using the COBOL programming language.

Languages that cannot easily handle binary values, such as COBOL, should use the decimal value associated with the command where necessary.

The hexadecimal value can be used in Macro, Assembler and PL/I programs.

Table 1. GETSOCKOPT/SETSOCKOPT command values for Macro, Assembler, COBOL and PL/I
Command name Decimal value Hex value
IP_ADD_MEMBERSHIP 1048581 X'00100005'
IP_ADD_SOURCE_MEMBERSHIP 1048588 X'0010000C'
IP_BLOCK_SOURCE 1048586 X'0010000A'
IP_DROP_MEMBERSHIP 1048582 X'00100006'
IP_DROP_SOURCE_MEMBERSHIP 1048589 X'0010000D'
IP_MULTICAST_IF 1048583 X'00100007'
IP_MULTICAST_LOOP 1048580 X'00100004'
IP_MULTICAST_TTL 1048579 X'00100003'
IP_UNBLOCK_SOURCE 1048587 X'0010000B'
IPV6_ADDR_PREFERENCES 65568 X'00010020'
IPV6_JOIN_GROUP 65541 X'00010005'
IPV6_LEAVE_GROUP 65542 X'00010006'
IPV6_MULTICAST_HOPS 65545 X'00010009'
IPV6_MULTICAST_IF 65543 X'00010007'
IPV6_MULTICAST_LOOP 65540 X'00010004'
IPV6_UNICAST_HOPS 65539 X'00010003'
IPV6_V6ONLY 65546 X'0001000A'
MCAST_BLOCK_SOURCE 1048620 X'0010002C'
MCAST_JOIN_GROUP 1048616 X'00100028'
MCAST_JOIN_SOURCE_GROUP 1048618 X'0010002A'
MCAST_LEAVE_GROUP 1048617 X'00100029'
MCAST_LEAVE_SOURCE_GROUP 1048619 X'0010002B'
MCAST_UNBLOCK_SOURCE 1048621 X'0010002D'
SO_BROADCAST 32 X'00000020'
SO_ERROR 4103 X'00001007'
SO_LINGER 128 X'00000080'
SO_KEEPALIVE 8 X'00000008'
SO_OOBINLINE 256 X'00000100'
SO_RCVBUF 4098 X'00001002'
SO_RCVTIMEO 4102 X'00001006'
SO_REUSEADDR 4 X'00000004'
SO_SNDBUF 4097 X'00001001'
SO_SNDTIMEO 4101 X'00001005'
SO_TYPE 4104 X'00001008 '
TCP_KEEPALIVE 2147483654 X'80000008 '
TCP_NODELAY 2147483649 X'80000001'
Table 2. GETSOCKOPT/SETSOCKOPT optname value for C programs
Option name Decimal value
IP_ADD_MEMBERSHIP 5
IP_ADD_SOURCE_MEMBERSHIP 12
IP_BLOCK_SOURCE 10
IP_DROP_MEMBERSHIP 6
IP_DROP_SOURCE_MEMBERSHIP 13
IP_MULTICAST_IF 7
IP_MULTICAST_LOOP 4
IP_MULTICAST_TTL 3
IP_UNBLOCK_SOURCE 11
MCAST_BLOCK_SOURCE 44
MCAST_JOIN_GROUP 40
MCAST_JOIN_SOURCE_GROUP 42
MCAST_LEAVE_GROUP 41
MCAST_LEAVE_SOURCE_GROUP 43
MCAST_UNBLOCK_SOURCE 45
SO_ACCEPTCONN 2
SO_BROADCAST 32
SO_CLUSTERCONNTYPE 16385
SO_DEBUG 1
SO_ERROR 4103
SO_KEEPALIVE 8
SO_LINGER 128
SO_OOBINLINE 256
SO_RCVBUF 4098
SO_REUSEADDR 4
SO_SNDBUF 4097
SO_TYPE 4104
TCP_KEEPALIVE 8
TCP_NODELAY 1

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014