2 out of 2 rated this helpful - Rate this topic

servent structure

The servent structure is used to store or return the name and service number for a given service name.

Syntax


typedef struct servent {
  char FAR      *s_name;
  char FAR  FAR **s_aliases;
  short         s_port;
  char FAR      *s_proto;
} SERVENT, *PSERVENT, FAR *LPSERVENT;

Members

s_name

The official name of the service.

s_aliases

A NULL-terminated array of alternate names.

s_port

The port number at which the service can be contacted. Port numbers are returned in network byte order.

s_proto

The name of the protocol to use when contacting the service.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Winsock2.h

See also

getservbyname

 

 

Send comments about this topic to Microsoft

Build date: 11/29/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.