Obtaining Socket Addresses

The sockets API includes calls that allow an application to obtain the address of the destination to which a socket connects and the local address of a socket. The socket calls that allow a program to retrieve socket addresses are:

For additional information that you may need before binding or obtaining socket addresses, see: