![]() Chapter Contents  | 
![]() Previous  | 
![]() Next  | 
| setnetent | 
| Portability: | UNIX compatible | 
| SYNOPSIS | |
| DESCRIPTION | |
| RETURN VALUE | |
| PORTABILITY | |
| IMPLEMENTATION | |
| RELATED FUNCTIONS | 
| SYNOPSIS | 
#include <netdb.h> void setnetent(int stayopen);
| DESCRIPTION | 
setnetent
 opens the network file, that is, a file with the same format
as 
/etc/networks
 in the
UNIX environment.  If the file is already open, 
setnetent
 rewinds the file so that succeeding 
getnetent
 calls can read it sequentially.  Specifying
a nonzero value for 
stayopen
causes the network file to remain open between subsequent 
getnetbyname
 and 
getnetbyaddr
 calls.  Refer to Network Administration for information on naming the network file for your
system.
| RETURN VALUE | 
setnetent
 does not return a value.
| PORTABILITY | 
setnetent
 is portable to other environments, including most UNIX systems,
that implement BSD sockets.
| IMPLEMENTATION | 
This routine is ported directly from the BSD UNIX Socket Library.
| RELATED FUNCTIONS | 
getnetent
, 
endnetent
, 
getnetbyname
, 
getnetbyaddr
![]() Chapter Contents  | 
![]() Previous  | 
![]() Next  | 
![]() Top of Page  | 
Copyright © 2001 by SAS Institute Inc., Cary, NC, USA. All rights reserved.