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

Varoitus

Varoitus ! Tämä funktio on EKSPERIMENTAALINEN . Tämän funktion ominaisuudet , käyttäytyminen , parametrit ja nimi voi muuttua varoituksetta seuraavissa PHP versioissa .

Palauttaa TRUE jos onnistui , FALSE jos epäonnistui . 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 .