diff options
Diffstat (limited to 'REFLECTION')
-rw-r--r-- | REFLECTION | 248 |
1 files changed, 231 insertions, 17 deletions
@@ -1,4 +1,4 @@ -Extension [ <persistent> extension #125 swoole version 6.0.0 ] { +Extension [ <persistent> extension #126 swoole version 6.0.0RC1 ] { - Dependencies { Dependency [ json (Required) ] @@ -29,8 +29,8 @@ Extension [ <persistent> extension #125 swoole version 6.0.0 ] { } } - - Constants [397] { - Constant [ string SWOOLE_VERSION ] { 6.0.0 } + - Constants [399] { + Constant [ string SWOOLE_VERSION ] { 6.0.0RC1 } Constant [ int SWOOLE_VERSION_ID ] { 60000 } Constant [ int SWOOLE_MAJOR_VERSION ] { 6 } Constant [ int SWOOLE_MINOR_VERSION ] { 0 } @@ -268,6 +268,7 @@ Extension [ <persistent> extension #125 swoole version 6.0.0 ] { Constant [ int SWOOLE_MUTEX ] { 3 } Constant [ int SWOOLE_RWLOCK ] { 1 } Constant [ int SWOOLE_SPINLOCK ] { 5 } + Constant [ int SWOOLE_COROLOCK ] { 6 } Constant [ int SWOOLE_MSGQUEUE_ORIENT ] { 1 } Constant [ int SWOOLE_MSGQUEUE_BALANCE ] { 2 } Constant [ int SWOOLE_TIMER_MIN_MS ] { 1 } @@ -307,6 +308,7 @@ Extension [ <persistent> extension #125 swoole version 6.0.0 ] { Constant [ int SWOOLE_HOOK_PDO_SQLITE ] { 524288 } Constant [ int SWOOLE_HOOK_ALL ] { 2147481599 } Constant [ int SOCKET_ECANCELED ] { 125 } + Constant [ int TCP_INFO ] { 11 } Constant [ int SWOOLE_HTTP_CLIENT_ESTATUS_CONNECT_FAILED ] { -1 } Constant [ int SWOOLE_HTTP_CLIENT_ESTATUS_REQUEST_TIMEOUT ] { -2 } Constant [ int SWOOLE_HTTP_CLIENT_ESTATUS_SERVER_RESET ] { -3 } @@ -499,20 +501,20 @@ Extension [ <persistent> extension #125 swoole version 6.0.0 ] { Function [ <internal:swoole> function swoole_client_select ] { - Parameters [4] { - Parameter #0 [ <required> array &$read_array ] - Parameter #1 [ <required> array &$write_array ] - Parameter #2 [ <required> array &$error_array ] - Parameter #3 [ <optional> float $timeout = 0.5 ] + Parameter #0 [ <required> ?array &$read ] + Parameter #1 [ <required> ?array &$write ] + Parameter #2 [ <required> ?array &$except ] + Parameter #3 [ <optional> ?float $timeout = 0.5 ] } - Return [ int|false ] } Function [ <internal:swoole> function swoole_select ] { - Parameters [4] { - Parameter #0 [ <required> array &$read_array ] - Parameter #1 [ <required> array &$write_array ] - Parameter #2 [ <required> array &$error_array ] - Parameter #3 [ <optional> float $timeout = 0.5 ] + Parameter #0 [ <required> ?array &$read ] + Parameter #1 [ <required> ?array &$write ] + Parameter #2 [ <required> ?array &$except ] + Parameter #3 [ <optional> ?float $timeout = 0.5 ] } - Return [ int|false ] } @@ -677,7 +679,7 @@ Extension [ <persistent> extension #125 swoole version 6.0.0 ] { Parameter #0 [ <required> string $fn ] Parameter #1 [ <optional> mixed $args = null ] } - - Return [ void ] + - Return [ mixed ] } Function [ <internal:swoole> function swoole_get_objects ] { @@ -1041,7 +1043,7 @@ Extension [ <persistent> extension #125 swoole version 6.0.0 ] { } } - - Classes [50] { + - Classes [51] { Class [ <internal:swoole> class Swoole\Exception extends Exception implements Throwable, Stringable ] { - Constants [0] { @@ -2720,7 +2722,7 @@ Extension [ <persistent> extension #125 swoole version 6.0.0 ] { Method [ <internal:swoole> static public method waitSignal ] { - Parameters [2] { - Parameter #0 [ <required> int $signo ] + Parameter #0 [ <required> array|int $signals ] Parameter #1 [ <optional> float $timeout = -1 ] } - Return [ bool ] @@ -3392,7 +3394,7 @@ Extension [ <persistent> extension #125 swoole version 6.0.0 ] { Method [ <internal:swoole> static public method waitSignal ] { - Parameters [2] { - Parameter #0 [ <required> int $signo ] + Parameter #0 [ <required> array|int $signals ] Parameter #1 [ <optional> float $timeout = -1 ] } - Return [ bool ] @@ -4192,7 +4194,8 @@ Extension [ <persistent> extension #125 swoole version 6.0.0 ] { Method [ <internal:swoole> public method enableSSL ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ <optional> ?callable $onSslReady = null ] } - Return [ bool ] } @@ -4341,6 +4344,217 @@ Extension [ <persistent> extension #125 swoole version 6.0.0 ] { } } + Class [ <internal:swoole> class Swoole\Async\Client extends Swoole\Client ] { + + - Constants [7] { + Constant [ public int MSG_OOB ] { 1 } + Constant [ public int MSG_PEEK ] { 2 } + Constant [ public int MSG_DONTWAIT ] { 64 } + Constant [ public int MSG_WAITALL ] { 256 } + Constant [ public int SHUT_RDWR ] { 2 } + Constant [ public int SHUT_RD ] { 0 } + Constant [ public int SHUT_WR ] { 1 } + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [14] { + Property [ public $errCode = 0 ] + Property [ public $sock = -1 ] + Property [ public $reuse = false ] + Property [ public $reuseCount = 0 ] + Property [ public $type = 0 ] + Property [ public $id = NULL ] + Property [ public $setting = NULL ] + Property [ private $onConnect = NULL ] + Property [ private $onError = NULL ] + Property [ private $onReceive = NULL ] + Property [ private $onClose = NULL ] + Property [ private $onBufferFull = NULL ] + Property [ private $onBufferEmpty = NULL ] + Property [ private $onSSLReady = NULL ] + } + + - Methods [22] { + Method [ <internal:swoole, overwrites Swoole\Client, ctor> public method __construct ] { + + - Parameters [1] { + Parameter #0 [ <required> int $type ] + } + } + + Method [ <internal:swoole, overwrites Swoole\Client, prototype Swoole\Client> public method __destruct ] { + + - Parameters [0] { + } + } + + Method [ <internal:swoole, overwrites Swoole\Client, prototype Swoole\Client> public method connect ] { + + - Parameters [4] { + Parameter #0 [ <required> string $host ] + Parameter #1 [ <optional> int $port = 0 ] + Parameter #2 [ <optional> float $timeout = 0.5 ] + Parameter #3 [ <optional> int $sock_flag = 0 ] + } + - Return [ bool ] + } + + Method [ <internal:swoole> public method sleep ] { + + - Parameters [0] { + } + - Return [ bool ] + } + + Method [ <internal:swoole> public method wakeup ] { + + - Parameters [0] { + } + - Return [ bool ] + } + + Method [ <internal:swoole> public method pause ] { + + - Parameters [0] { + } + - Return [ bool ] + } + + Method [ <internal:swoole> public method resume ] { + + - Parameters [0] { + } + - Return [ bool ] + } + + Method [ <internal:swoole, overwrites Swoole\Client, prototype Swoole\Client> public method enableSSL ] { + + - Parameters [1] { + Parameter #0 [ <optional> ?callable $onSslReady = null ] + } + - Return [ bool ] + } + + Method [ <internal:swoole, overwrites Swoole\Client, prototype Swoole\Client> public method isConnected ] { + + - Parameters [0] { + } + - Return [ bool ] + } + + Method [ <internal:swoole, overwrites Swoole\Client, prototype Swoole\Client> public method close ] { + + - Parameters [1] { + Parameter #0 [ <optional> bool $force = false ] + } + - Return [ bool ] + } + + Method [ <internal:swoole> public method on ] { + + - Parameters [2] { + Parameter #0 [ <required> string $host ] + Parameter #1 [ <required> callable $callback ] + } + - Return [ bool ] + } + + Method [ <internal:swoole, inherits Swoole\Client> public method set ] { + + - Parameters [1] { + Parameter #0 [ <required> array $settings ] + } + - Return [ bool ] + } + + Method [ <internal:swoole, inherits Swoole\Client> public method recv ] { + + - Parameters [2] { + Parameter #0 [ <optional> int $size = 65536 ] + Parameter #1 [ <optional> int $flag = 0 ] + } + - Return [ string|false ] + } + + Method [ <internal:swoole, inherits Swoole\Client> public method send ] { + + - Parameters [2] { + Parameter #0 [ <required> string $data ] + Parameter #1 [ <optional> int $flag = 0 ] + } + - Return [ int|false ] + } + + Method [ <internal:swoole, inherits Swoole\Client> public method sendfile ] { + + - Parameters [3] { + Parameter #0 [ <required> string $filename ] + Parameter #1 [ <optional> int $offset = 0 ] + Parameter #2 [ <optional> int $length = 0 ] + } + - Return [ bool ] + } + + Method [ <internal:swoole, inherits Swoole\Client> public method sendto ] { + + - Parameters [3] { + Parameter #0 [ <required> string $ip ] + Parameter #1 [ <required> int $port ] + Parameter #2 [ <required> string $data ] + } + - Return [ bool ] + } + + Method [ <internal:swoole, inherits Swoole\Client> public method shutdown ] { + + - Parameters [1] { + Parameter #0 [ <required> int $how ] + } + - Return [ bool ] + } + + Method [ <internal:swoole, inherits Swoole\Client> public method getPeerCert ] { + + - Parameters [0] { + } + - Return [ string|bool ] + } + + Method [ <internal:swoole, inherits Swoole\Client> public method verifyPeerCert ] { + + - Parameters [0] { + } + - Return [ bool ] + } + + Method [ <internal:swoole, inherits Swoole\Client> public method getsockname ] { + + - Parameters [0] { + } + - Return [ array|false ] + } + + Method [ <internal:swoole, inherits Swoole\Client> public method getpeername ] { + + - Parameters [0] { + } + - Return [ array|false ] + } + + Method [ <internal:swoole, inherits Swoole\Client> public method getSocket ] { + + - Parameters [0] { + } + - Return [ Socket|false ] + } + } + } + Class [ <internal:swoole> class Swoole\Coroutine\Client ] { - Constants [4] { @@ -6837,7 +7051,7 @@ Extension [ <persistent> extension #125 swoole version 6.0.0 ] { Parameter #0 [ <required> string $pattern ] Parameter #1 [ <required> callable $callback ] } - - Return [ void ] + - Return [ bool ] } Method [ <internal:swoole> private method onAccept ] { |