tor-browser

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

pr_getsockname.rst (558B)


      1 PR_GetSockName
      2 ==============
      3 
      4 Gets network address for a specified socket.
      5 
      6 
      7 Syntax
      8 ------
      9 
     10 .. code::
     11 
     12   #include <prio.h>
     13 
     14   PRStatus PR_GetSockName(
     15     PRFileDesc *fd,
     16     PRNetAddr *addr);
     17 
     18 
     19 Parameters
     20 ~~~~~~~~~~
     21 
     22 The function has the following parameters:
     23 
     24 ``fd``
     25   A pointer to a :ref:`PRFileDesc` object representing the socket.
     26 ``addr``
     27   On return, the address of the socket.
     28 
     29 
     30 Returns
     31 ~~~~~~~
     32 
     33 -  If successful, ``PR_SUCCESS``.
     34 -  If unsuccessful, ``PR_FAILURE``. The reason for the failure can be
     35   obtained by calling :ref:`PR_GetError`.