Partager via


protoent

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This 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 anything inside the structure. 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

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

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

Header winsock2.h
Windows Embedded CE Windows CE .NET 4.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Other Resources

Windows Sockets