EventUtil::getSocketName

(PECL event >= 1.5.0)

EventUtil::getSocketNameRetreives the current address to which the socket is bound

说明

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

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.

返回值

Returns TRUE on success. Otherwise FALSE.

相关文章
php arrayiterator return current array keyphp cairocontext retrieves the current clip as a list of rectanglesphp 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 retreives the current address to which the listener s socket is boundphp eventutil returns the most recent socket error numberphp eventutil returns the most recent socket errorphp eventutil returns numeric file descriptor of a socket or streamphp eventutil retreives the current address to which the socket is boundphp eventutil sets socket optionsphp mcve 函数 returns array of strings which represents the keys that can be used for response parameters on this transactionphp mysqlnd qc 函数 change current storage handlerphp 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 solrquery overrides main filter query determines which documents to include in the main groupphp solrquery returns the lower bound for the first date range for all date faceting on this fieldphp solrquery returns whether or not to include the upper bound term in the result setphp splpriorityqueue return current node pointed by the iteratorphp sqlite3stmt clears all current bound parameters
关注编程学问公众号