h6. [[Internet]] h6(. » [[Internet SWI Calls|SWI Calls]] h6((. » Socket_Getsockname h2. Socket_Getsockname h5. (SWI &4120F) |_<^{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 local address that the socket is connected to (if any). h4. Berkeley sockets equivalence This SWI directly corresponded to the function <code>getsockname</code> in 4.3BSD. h4. Notes This SWI is deprecated; the format of the address block in R1 was changed in "Internet 5.00":/content/documents/internet-4-migration and a new SWI added which accommodates the new layout. See [[Socket_Getsockname_1]] for details. h4. See also * [[Internet]]