socket_getpeername â Queries the remote side of the given socket which may either result in host/port or in a Unix filesystem path, dependent on its type
socket_getsockname â Queries the local side of the given socket which may either result in host/port or in a Unix filesystem path, dependent on its type