Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

protoent structure

The protoent structure contains the name and protocol numbers that correspond to a given protocol name. Applications must never attempt to modify this structure or to free any of its components. Furthermore, only one copy of this structure is allocated per thread, and therefore, the application should copy any information it needs before issuing any other Windows Sockets function calls.

Syntax


typedef struct protoent {
  char FAR      *p_name;
  char FAR  FAR **p_aliases;
  short         p_proto;
} protoent;

Members

p_name

Official name of the protocol.

p_aliases

Null-terminated array of alternate names.

p_proto

Protocol number, in host byte order.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Winsock2.h

 

 

Show:
© 2017 Microsoft