socket_getpeername

(PHP 4 >= 4.1.0)

socket_getpeername -- Given an fd, stores a string representing sa.sin_addr and the value of sa.sin_port into addr and port describing the remote side of a socket

Description

bool socket_getpeername ( resource socket, string &addr [, int &port])

Warning

This function is EXPERIMENTAL. The behaviour of this function, the name of this function, and anything else documented about this function may change in a future release of PHP without notice. Be warned and use this function at your own risk.

Warning

This function is currently not documented; only the argument list is available.