socket_getpeername

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.

Description

bool socket_getpeername ( resource socket, string addr [, int port])

Aviso

Este módulo es EXPERIMENTAL . Esto significa que el comportamineto de estas funciones , nombre de funciones y en definitiva TODO lo documentado aqui , puede cambiar en una futura version de PHP SIN AVISO . Quedas avisado , y utilizar este módulo es tu responsabiliad .

Devuelve TRUE si todo fue bien , FALSE en caso de fallo . socket_getpeername( ) may also return FALSE if the socket type is not any of AF_INET or AF_UNIX , in which case the last socket error code is not updated .