tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

prprotoent.rst (578B)


      1 PRProtoEnt
      2 ==========
      3 
      4 Protocol entry returned by :ref:`PR_GetProtoByName` and
      5 :ref:`PR_GetProtoByNumber`.
      6 
      7 
      8 Syntax
      9 ------
     10 
     11 .. code::
     12 
     13   #include <prnetdb.h>
     14 
     15   typedef struct PRProtoEnt {
     16     char *p_name;
     17     char **p_aliases;
     18   #if defined(_WIN32)
     19     PRInt16 p_num;
     20   #else
     21     PRInt32 p_num;
     22   #endif
     23   } PRProtoEnt;
     24 
     25 
     26 Fields
     27 ~~~~~~
     28 
     29 The structure has the following fields:
     30 
     31 ``p_name``
     32   Pointer to official protocol name.
     33 ``p_aliases``
     34   Pointer to a pointer to a list of aliases. The list is terminated
     35   with a ``NULL`` entry.
     36 ``p_num``
     37   Protocol number.