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

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_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 .