Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/s/servent.html on line 1

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/s/servent.html on line 1

Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/s/servent.html on line 8

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/s/servent.html on line 8

servent

Structure for information from the services database

Synopsis:

#include <netdb.h>

struct servent {
     char *  s_name;
     char ** s_aliases;
     int    s_port;
     char *  s_proto;   
};

Description:

This structure is used to hold the broken-out fields of a line in the network services database, /etc/services. The members of this structure are:

s_name
The name of the service.
s_aliases
A zero-terminated list of alternate names for the service.
s_port
The port number that the service resides at. Port numbers are returned in network byte order.
s_proto
The name of the protocol to use when contacting the service.

Classification:

POSIX 1003.1

See also:

endservent(), getservbyname(), getservbyport(), getservent(), setservent()

/etc/services in the Utilities Reference


Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/s/servent.html on line 109

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/s/servent.html on line 109