PROTOENT

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

The members of this structure are:

Element Usage
p_name Official name of the protocol.
P_aliases A NULL-terminated array of alternate names.
P_proto The protocol number, in host byte order.

The returned pointer points to a structure that is allocated by the Windows Sockets library. The application 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 so the application should copy any information which it needs before issuing any other Windows Sockets function calls.