Свойство | Тип | Описание | |
---|---|---|---|
$allowedClients | Allowed clients |
Свойство | Тип | Описание | |
---|---|---|---|
$bound | Bound sockets |
Метод | Описание | |
---|---|---|
__construct ( array $config = [], boolean $init = true ) | Constructor | |
attachBound ( |
Attach Generic | |
bindSocket ( string $uri ) : boolean | Bind given socket | |
bindSockets ( mixed $addrs = [], integer $max ) : integer | Bind given sockets | |
closeBound ( ) : void | Close each of binded sockets | |
detachBound ( |
Detach Generic | |
inheritFromRequest ( object $req, object $oldConn ) : boolean | Called when a request to HTTP-server looks like another connection |
Метод | Описание | |
---|---|---|
applyConfig ( ) : void | Applies config | |
onDisable ( ) : void | Called when ConnectionPool is now disabled | |
onEnable ( ) : void | Called when ConnectionPool is now enabled | |
onFinish ( ) : void | Called when ConnectionPool is finished |
public __construct ( array $config = [], boolean $init = true ) | ||
$config | array | Config variables |
$init | boolean |
public attachBound ( |
||
$bound | Generic | |
$inf | mixed | Info |
Результат | void |
public bindSocket ( string $uri ) : boolean | ||
$uri | string | Address to bind |
Результат | boolean | Success |
public closeBound ( ) : void | ||
Результат | void |
public detachBound ( |
||
$bound | Generic | |
Результат | void |