summaryrefslogtreecommitdiffstats
path: root/docs/nspr/reference/pr_familyinet.rst
blob: 251286257f67e80e1e7c1c89a1e40f5a37695404 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
PR_FamilyInet
=============

Gets the value of the address family for Internet Protocol.


Syntax
------

.. code::

   #include <prnetdb.h>

   PRUint16 PR_FamilyInet(void);


Returns
~~~~~~~

The value of the address family for Internet Protocol. This is usually
``PR_AF_INET``, but can also be ``PR_AF_INET6`` if IPv6 is enabled. The
returned value can be assigned to the ``inet.family`` field of a
:ref:`PRNetAddr` object.