EventListener::getSocketName

(PECL event >= 1.5.0)

EventListener::getSocketNameRetreives the current address to which the listener's socket is bound

说明

public static EventListener::getSocketName ( string &$address [, mixed &$port ] ) : bool

Retreives the current address to which the listener's socket is bound.

参数

address

Output parameter. IP-address depending on the socket address family.

port

Output parameter. The port the socket is bound to.

返回值

Returns TRUE on success. Otherwise FALSE.

相关文章
php collator get current collation strengthphp directoryiterator get path of current iterator item without filenamephp eventbufferevent connect buffer event s file descriptor to given address or unix socketphp eventhttpconnection sets the ip address from which http connections are madephp eventlistener creates new connection listener associated with an event basephp eventlistener disables an event connect listener objectphp eventlistener enables an event connect listener objectphp eventlistener returns event base associated with the event listenerphp eventlistener retreives the current address to which the listener s socket is boundphp eventlistener set event listener s error callbackphp eventutil retreives the current address to which the socket is boundphp pdf 函数 output text at current positionphp socket 函数 queries the remote side of the given socket which may either result in host/port or in a unix filesystem path dependent on its typephp socket 函数 queries the local side of the given socket which may either result in host/port or in a unix filesystem path dependent on its typephp gearmanclient get current socket i/o activity timeout valuephp sqlite3stmt clears all current bound parametersphp swfshape draws an arc of radius r centered at the current location from angle startangle to angle endangle measured clockwise from 12 o clockphp swftext returns the leading of the current font at its current size or 0 if not availablephp swoole server delay execution of the callback function at the end of current eventloop.php swoole server send data to the remote udp address.
关注编程学问公众号