|
|
This chapter describes the socket library include files. It lists the structures and macro definitions included in each header file.
Socket library include files are installed on the local system as members of a partitioned data set. Include this data set in the SYSLIB DD concatenation when application programs are compiled. The data set name is determined during installation (default name T01TCP.H unless changed by the local system programmer). This table summarizes the contents of each include file:
| INCLUDE FILE | PDS MEMBER | STRUCTURE DECLARATIONS | MACRO DEFINITIONS | OTHER DEFINITIONS |
|---|---|---|---|---|
| acs.h | ACS | |||
| cdefs.h | CDEFS | _CONCAT
_PA _STRING | ANSI C Keywords | |
| errno.h | ERRNO | GET_ERRNO
SET_ERRNO | Socket errno values | |
| if.h | IF | ifnet
ifaddr ifreq ifconf | IF_QFULL
IF_DROP IF_ENQUE IF_PREPEND IF_DEQUEUE | |
| if_arp | IF#ARP | arp_hdr
arpreq | ||
| if_ether | IF#ETHER | ether_header
ether_arp | ETHER_MAP_IP_MULTICAST | |
| in.h | IN | in_addr
sockaddr_in ip_mreq | IN_CLASSA
IN_CLASSB IN_CLASSC IN_CLASSD IN_MULTICAST IN_EXPERIMENTAL IN_BADCLASS htonl htons ntohl ntohs | Protocol defines
Well-known port numbers IP options Important IP addresses Function prototypes |
| inet.h | INET | Includes in.h | ||
| ioccom.h | IOCCOM | IOC_VOID
IOC_OUT IOC_IN IOC_INOUT IOC_DIRMASK | ||
| ioctl.h | IOCTL | SIOCADDRT
SIOCDELRT OSIOCGIFADDR SIOCGIFADDR OSIOCGIFDSTADDR SIOCGIFDSTADDR SIOCGIFFLAGS OSIOCGIFBRDADDR SIOCGIFBRDADDR SIOCGIFCONF OSIOCGIFNETMASK SIOCGIFNETMASK SIOCGIFMETRIC SIOCGIFNUM SIOCGIFHWADDR SIOCGIFMTU | ||
| ip.h | IP | ip
ip_timestamp | Type of service values
Precedence values IP options values Security values Internet implementation values | |
| netdb.h | NETDB | hostent | Error return codes
Function prototypes | |
| param.h | PARAM | setbit
clrbit isset isclr howmany roundup powerof2 MIN MAX | ||
| serrno.h | SERRNO | includes errno.h | ||
| sockcfg.h | SOCKCFG | cfuncs | SET_CNFG_ERR
SET_APICNFG_ERR | Configuration parameters |
| socket.h | SOCKET | linger
clientid | bcopy
bzero bcmp
| Socket types
Socket options |
| sockio.h | SOCKIO | includes ioctl.h | ||
| sockvar.h | SOCKVAR | arb
sb tpi sdebug errtbl socket | spending
sstate SOISREADABLE TPLGEN SAVE_ERR SAVE_EXIT SAVE_CMPL_EXIT | |
| syslog.h | SYSLOG | Priority values/names
Option flag values Facility names | ||
| systime.h | SYSTIME | timeval
timezone itemerval | timerisset
timercmp timerclear | |
| tcp.h. | TCP | TCP_NODELAY
TCP_MAXSEG TCP_LINGERTIME | ||
| time.h | TIME | tm | difftime | Time values |
| types.h | TYPES | FD_SET
FD_CLR FD_ISSET FD_ZERO | standard C type defines | |
| uio.h | UIO | iovec | ||
| unistd.h | UNISTD | STDIN_FILENO
STDOUT_FILENO STDERR_FILENO |
|
|