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


setnetent()

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

The setnetent() call opens and caches the local host table contents for getnetent() call. The setnetent() call is available only when RESOLVE_VIA_LOOKUP is defined before MANIFEST.H is included. See z/OS Communications Server: IP Configuration Guide for information about using local host tables.

#include <manifest.h>
#include <socket.h>
 
int setnetent(int stayopen)
Parameter
Description
stayopen
A nonzero flag value prevents the cached local host table contents from being freed after an endnetent().

Return values

The value 0 indicates success; the value -1 indicates an error. Errno identifies the specific error, returning the errno value of the fopen() call.

Related calls

endnetent(), endhostent(), getnetbyaddr(), getnetbyname(), getnetent()

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014