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])

Ostrzeżenie

Ta funkcja jest w stadium EKSPERYMENTALNYM . Oznacza to , że zachowanie funkcji , jej nazwa , w zasadzie wszystko udokumentowane tutaj może zostać zmienione w przyszłych wersjach PHP bez wcześniejszego uprzedzenia . Używaj tej funkcji na własne ryzyko .

Zwraca TRUE w przypadku sukcesu , FALSE w przypadku porażki . 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 .