Middleware, development tools, realtime operating system
software and services for superior embedded design


Home
QNX Community Resources
Developer Support
QNX Documentation Library
QNX Developer Support

QNX Developer Support

QNX Software Systems
Developer Resources
Blogs
Board support packages
Foundry27 projects
Forums
Hardware support listing
Online video tutorials
Product documentation
Technical Articles

[Previous] [Contents] [Index] [Next]

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


[Previous] [Contents] [Index] [Next]