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

Varovanie

Táto funkcia je EXPERIMENTÁLNA . Správanie tejto funkcie , meno tejto funkcie a všetko ostatné , čo tu je zdokumentované sa v budúcnosti môže bez ohlásenia zmeniť . Majte to na pamäti a používajte túto funkciu iba na vlastné nebezpečentsvo .

Returns TRUE on success , FALSE on failure . 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 .