h6. [[Internet]] h6(. » [[Internet SWI Calls|SWI Calls]] h6((. » Socket_Getpeername_1 h2. Socket_Getpeername_1 h5. (SWI &4121F) |_<^{width:4em}. Entry | | |<^. R0 |<^. Socket descriptor | |<^. R1 |<^. Pointer to an address to be filled in | |<^. R2 |<^. Pointer to an integer containing the size of the address | |_<^{width:4em}. Exit | | |<^. R0 |<^. Corrupted | h4. Use The purpose of this call is to return the remote address that the socket is connected to (if any). h4. Berkeley sockets equivalence This SWI directly corresponds to the function "getpeername":https://pubs.opengroup.org/onlinepubs/9699919799/functions/getpeername.html and would ordinarily be called from C using the <code>getpeername()</code> function in <code>socklib.h</code>. h4. See also * [[Internet]]