array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'pt_BR', ), 'this' => array ( 0 => 'eventutil.getsocketname.php', 1 => 'EventUtil::getSocketName', ), 'up' => array ( 0 => 'class.eventutil.php', 1 => 'EventUtil', ), 'prev' => array ( 0 => 'eventutil.getsocketfd.php', 1 => 'EventUtil::getSocketFd', ), 'next' => array ( 0 => 'eventutil.setsocketoption.php', 1 => 'EventUtil::setSocketOption', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/event/eventutil/getsocketname.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PECL event >= 1.5.0)
EventUtil::getSocketName — Retreives the current address to which the socket is bound
Retreives the current address to which the
socket
is bound.
socket
Socket resource, stream or a file descriptor of a socket.
address
Output parameter. IP-address, or the UNIX domain socket path depending on the socket address family.
port
Output parameter. The port the socket is bound to. Has no meaning for UNIX domain sockets.