Chapter Contents |
Previous |
Next |
setservent |
Portability: | UNIX compatible |
SYNOPSIS | |
DESCRIPTION | |
RETURN VALUE | |
PORTABILITY | |
IMPLEMENTATION | |
RELATED FUNCTIONS |
SYNOPSIS |
#include <netdb.h> void setservent(int stayopen);
DESCRIPTION |
setservent
opens the services file, that is, a file with the same
format as
/etc/services
in the UNIX environment. If the
file is already open,
setservent
rewinds the file so that succeeding
getservent
calls can read it sequentially. Specifying a nonzero value
for
stayopen
causes the
protocols file to remain open between subsequent
getservbyname
and
getservbyaddr
calls. Refer to Network Administration for information on naming the services file for your
system.
RETURN VALUE |
setservent
does not return a value.
PORTABILITY |
setservent
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 |
getservent
,
endservent
,
getservbyname
,
getservbyport
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright © 2001 by SAS Institute Inc., Cary, NC, USA. All rights reserved.