Comments
The getpeername() function is used to retrieve the destination address to which the socket is connected.
Posted by waqasahmad
The getpeername() function is basically used to retrieve the destination address to which the socket is connected.
Posted by sagitraz
It allows one to find the IP address at the other end of a TCP connection.
Posted by vishwesh