Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
getprotoent() z/OS Communications Server: IP Sockets Application Programming Interface Guide and Reference SC27-3660-00 |
|
The getprotoent() call reads the hlq.ETC.PROTO data set, and the getprotoent() call returns a pointer to the next entry in the hlq.ETC.PROTO data set.
The protoent structure
is defined in the NETDB.H header file and contains the following elements:
Return valuesThe return value points to static data that is overwritten by subsequent calls. A pointer to a protoent structure indicates success. A NULL pointer indicates an error or end-of-file. When a NULL pointer or 0 is returned, the value of errno is indeterminate, and therefore, the output from a tcperror() call cannot be validated. Related callsendprotoent(), getprotobyname(), getprotobynumber(), setprotoent() |
Copyright IBM Corporation 1990, 2014
|