summaryrefslogtreecommitdiffstats
path: root/docs/nspr/reference/prprotoent.rst
blob: 6d913a1cc86f4abe82b0e25fce23fb4a267d26cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
PRProtoEnt
==========

Protocol entry returned by :ref:`PR_GetProtoByName` and
:ref:`PR_GetProtoByNumber`.


Syntax
------

.. code::

   #include <prnetdb.h>

   typedef struct PRProtoEnt {
     char *p_name;
     char **p_aliases;
   #if defined(_WIN32)
     PRInt16 p_num;
   #else
     PRInt32 p_num;
   #endif
   } PRProtoEnt;


Fields
~~~~~~

The structure has the following fields:

``p_name``
   Pointer to official protocol name.
``p_aliases``
   Pointer to a pointer to a list of aliases. The list is terminated
   with a ``NULL`` entry.
``p_num``
   Protocol number.