socket_getsockname

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.

Description

bool socket_getsockname ( 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_getsockname( ) 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 .