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

Varování

Tato funkce je EXPERIMENTÁLNÍ . Chování této funkce , její název a všechno ostatní , co je zde zdokumentováno , se v budoucích verzích PHP může BEZ OHLÁŠENÍ změnit . Berte to v úvahu a používejte tuto funkci na vlastní nebezpečí .

Vrací TRUE při úspěchu , FALSE při selhání . 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 .