Created
December 15, 2016 07:31
-
-
Save Moln/435f69353b05d139a4a2a67c58ecbfca to your computer and use it in GitHub Desktop.
Swoole IDE Helper (swoole 1.9.0)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace { | |
| const SWOOLE_BASE = 4; | |
| const SWOOLE_THREAD = 2; | |
| const SWOOLE_PROCESS = 3; | |
| const SWOOLE_IPC_UNSOCK = 1; | |
| const SWOOLE_IPC_MSGQUEUE = 2; | |
| const SWOOLE_IPC_PREEMPTIVE = 3; | |
| const SWOOLE_SOCK_TCP = 1; | |
| const SWOOLE_SOCK_TCP6 = 3; | |
| const SWOOLE_SOCK_UDP = 2; | |
| const SWOOLE_SOCK_UDP6 = 4; | |
| const SWOOLE_SOCK_UNIX_DGRAM = 5; | |
| const SWOOLE_SOCK_UNIX_STREAM = 6; | |
| const SWOOLE_TCP = 1; | |
| const SWOOLE_TCP6 = 3; | |
| const SWOOLE_UDP = 2; | |
| const SWOOLE_UDP6 = 4; | |
| const SWOOLE_UNIX_DGRAM = 5; | |
| const SWOOLE_UNIX_STREAM = 6; | |
| const SWOOLE_SOCK_SYNC = 0; | |
| const SWOOLE_SOCK_ASYNC = 1; | |
| const SWOOLE_SYNC = 2048; | |
| const SWOOLE_ASYNC = 1024; | |
| const SWOOLE_KEEP = 4096; | |
| const SWOOLE_EVENT_READ = 512; | |
| const SWOOLE_EVENT_WRITE = 1024; | |
| const SWOOLE_VERSION = '1.9.0'; | |
| const SWOOLE_AIO_BASE = 0; | |
| const SWOOLE_AIO_LINUX = 1; | |
| const SWOOLE_FILELOCK = 2; | |
| const SWOOLE_MUTEX = 3; | |
| const SWOOLE_SEM = 4; | |
| const SWOOLE_RWLOCK = 1; | |
| const SWOOLE_SPINLOCK = 5; | |
| const WEBSOCKET_OPCODE_TEXT = 1; | |
| const WEBSOCKET_OPCODE_BINARY = 2; | |
| const WEBSOCKET_STATUS_CONNECTION = 1; | |
| const WEBSOCKET_STATUS_HANDSHAKE = 2; | |
| const WEBSOCKET_STATUS_FRAME = 3; | |
| const WEBSOCKET_STATUS_ACTIVE = 3; | |
| function swoole_version() {} | |
| function swoole_cpu_num() {} | |
| function swoole_clear_dns_cache() {} | |
| function swoole_event_add($fd, $cb) {} | |
| function swoole_event_set() {} | |
| function swoole_event_del($fd) {} | |
| function swoole_event_exit() {} | |
| function swoole_event_wait() {} | |
| function swoole_event_write($fd, $data) {} | |
| function swoole_event_defer($callback) {} | |
| function swoole_timer_after($ms, $callback, $param = null) {} | |
| function swoole_timer_tick($ms, $callback) {} | |
| function swoole_timer_exists($timer_id) {} | |
| function swoole_timer_clear($timer_id) {} | |
| function swoole_async_set($settings) {} | |
| function swoole_async_read($filename, $callback, $chunk_size = null, $offset = null) {} | |
| function swoole_async_write($filename, $content, $offset = null, $callback = null) {} | |
| function swoole_async_readfile($filename, $callback) {} | |
| function swoole_async_writefile($filename, $content, $callback = null) {} | |
| function swoole_async_dns_lookup($domain_name, $content) {} | |
| function swoole_client_select(&$read_array, &$write_array, &$error_array, $timeout = null) {} | |
| function swoole_select(&$read_array, &$write_array, &$error_array, $timeout = null) {} | |
| function swoole_set_process_name($process_name) {} | |
| function swoole_get_local_ip() {} | |
| function swoole_strerror($errno) {} | |
| function swoole_errno() {} | |
| function swoole_load_module() {} | |
| class swoole_server extends \Swoole\Server {} | |
| class swoole_timer extends Swoole\Timer { | |
| } | |
| class swoole_event extends Swoole\Event { | |
| } | |
| class swoole_async extends Swoole\Async { | |
| } | |
| class swoole_connection_iterator extends \Swoole\Connection\Iterator { | |
| } | |
| class swoole_exception extends \Exception { | |
| } | |
| class swoole_server_port extends \Swoole\Server\Port { | |
| } | |
| class swoole_client extends Swoole\Client { | |
| } | |
| class swoole_http_client extends \Swoole\Http\Client { | |
| } | |
| class swoole_process extends Swoole\Process { | |
| } | |
| class swoole_table extends Swoole\Table { | |
| } | |
| class swoole_lock extends Swoole\Lock { | |
| } | |
| class swoole_atomic extends Swoole\Atomic { | |
| } | |
| class swoole_http_server extends Swoole\Http\Server { | |
| } | |
| class swoole_http_response extends Swoole\Http\Response { | |
| } | |
| class swoole_http_request extends Swoole\Http\Request { | |
| } | |
| class swoole_buffer extends Swoole\Buffer { | |
| } | |
| class swoole_websocket_server extends Swoole\Websocket\Server { | |
| } | |
| class swoole_websocket_frame extends Swoole\Websocket\Frame { | |
| } | |
| class swoole_mysql extends Swoole\Mysql { | |
| } | |
| class swoole_mysql_exception extends \Exception { | |
| } | |
| class swoole_module extends Swoole\Module { | |
| } | |
| class swoole_mmap extends Swoole\Mmap { | |
| } | |
| class swoole_channel extends Swoole\Channel { | |
| } | |
| class swoole_redis extends Swoole\Redis { | |
| } | |
| class swoole_redis_server extends \Swoole\Redis\Server { | |
| } | |
| } | |
| namespace Swoole { | |
| class Server { | |
| public $setting; | |
| public $master_pid; | |
| public $manager_pid; | |
| public $worker_id; | |
| public $worker_pid; | |
| public $taskworker; | |
| public $connections; | |
| public function __construct($host, $port, $mode = null, $sock_type = null) {} | |
| public function listen($host, $port, $sock_type) {} | |
| public function addlistener($host, $port, $sock_type) {} | |
| public function on($name, $cb) {} | |
| public function set($zset) {} | |
| public function start() {} | |
| public function send($fd, $send_data, $reactor_id = null) {} | |
| public function sendto($ip, $port, $send_data = null) {} | |
| public function sendwait($conn_fd, $send_data) {} | |
| public function exist($fd) {} | |
| public function protect($fd, $is_protected = null) {} | |
| public function sendfile($conn_fd, $filename) {} | |
| public function close($fd) {} | |
| public function confirm($fd) {} | |
| public function pause($fd) {} | |
| public function resume($fd) {} | |
| public function task($data, $worker_id) {} | |
| public function taskwait($data, $timeout = null, $worker_id = null) {} | |
| public function taskWaitMulti($tasks, $timeout = null) {} | |
| public function finish($data) {} | |
| public function reload() {} | |
| public function shutdown() {} | |
| public function stop() {} | |
| public function getLastError() {} | |
| public function heartbeat($reactor_id) {} | |
| public function connection_info($fd, $reactor_id) {} | |
| public function connection_list($start_fd, $find_count) {} | |
| public function getClientInfo($fd, $reactor_id) {} | |
| public function getClientList($start_fd, $find_count) {} | |
| public function after($ms, $callback, $param = null) {} | |
| public function tick($ms, $callback) {} | |
| public function clearTimer($timer_id) {} | |
| public function defer($callback) {} | |
| public function sendMessage() {} | |
| public function addProcess() {} | |
| public function stats() {} | |
| public function bind($fd, $uid) {} | |
| } | |
| class Timer { | |
| public static function tick($ms, $callback, $param = null) {} | |
| public static function after($ms, $callback) : int {} | |
| public static function exists($timer_id) {} | |
| public static function clear($timer_id) {} | |
| } | |
| class Event { | |
| public static function add($fd, $cb) {} | |
| public static function del($fd) {} | |
| public static function set() {} | |
| public static function exit() {} | |
| public static function write($fd, $data) {} | |
| public static function wait() {} | |
| public static function defer($callback) {} | |
| } | |
| class Async { | |
| public static function read($filename, $callback, $chunk_size = null, $offset = null) {} | |
| public static function write($filename, $content, $offset = null, $callback = null) {} | |
| public static function readFile($filename, $callback) {} | |
| public static function writeFile($filename, $content, $callback = null) {} | |
| public static function dnsLookup($domain_name, $content) {} | |
| public static function set($settings) {} | |
| } | |
| class Client { | |
| const MSG_OOB = 1; | |
| const MSG_PEEK = 2; | |
| const MSG_DONTWAIT = 64; | |
| const MSG_WAITALL = 256; | |
| public function __construct() {} | |
| public function __destruct() {} | |
| public function set() {} | |
| public function connect(string $host, int $port, float $timeout = 0.1, int $flag = 0) : bool {} | |
| public function recv() {} | |
| public function send() {} | |
| public function pipe() {} | |
| public function sendfile() {} | |
| public function sendto() {} | |
| public function sleep() {} | |
| public function wakeup() {} | |
| public function pause() {} | |
| public function resume() {} | |
| public function isConnected() {} | |
| public function getsockname() {} | |
| public function getpeername() {} | |
| public function close() {} | |
| public function on() {} | |
| } | |
| class Process { | |
| /** | |
| * swoole_process constructor. | |
| * | |
| * @param callable $function | |
| * @param bool $redirect_stdin_stdout | |
| * @param bool $create_pipe | |
| */ | |
| public function __construct(callable $function, $redirect_stdin_stdout = false, $create_pipe = true) {} | |
| public static function wait(bool $blocking = true) : array {} | |
| /** | |
| * @param int $signo | |
| * @param callable $callback | |
| * @return bool | |
| */ | |
| public static function signal(int $signo, callable $callback) : bool {} | |
| public static function alarm(int $interval_usec, int $type = 1) : bool {} | |
| public static function kill(int $pid, $signo = SIGTERM) : int {} | |
| public static function daemon(bool $nochdir = true, bool $noclose = true) : bool {} | |
| public static function setaffinity(array $cpu_set) {} | |
| /** | |
| * @param int $msgkey | |
| * @param int $mode | |
| * @return bool | |
| */ | |
| public function useQueue(int $msgkey = 0, int $mode = 2) : bool {} | |
| public function statQueue() : array {} | |
| public function freeQueue() {} | |
| /** | |
| * @return int Return PID | |
| */ | |
| public function start() : int {} | |
| /** | |
| * @param string $data | |
| * @return int | |
| */ | |
| public function write(string $data) : int {} | |
| public function close() : bool {} | |
| /** | |
| * @param int $buffer_size | |
| * @return int | |
| */ | |
| public function read(int $buffer_size = 8192) : int {} | |
| /** | |
| * @param string $data | |
| * @return bool | |
| */ | |
| public function push(string $data) : bool {} | |
| /** | |
| * @param int $maxsize | |
| * @return string | |
| */ | |
| public function pop(int $maxsize = 8192) : string {} | |
| public function exit(int $status = 0) : int {} | |
| /** | |
| * @param string $execfile | |
| * @param array $args | |
| * @return bool | |
| */ | |
| public function exec(string $execfile, array $args) : bool {} | |
| /** | |
| * @param string $new_process_name | |
| * @return bool | |
| */ | |
| public function name(string $new_process_name) : bool {} | |
| } | |
| class Table { | |
| const TYPE_INT = 1; | |
| const TYPE_STRING = 7; | |
| const TYPE_FLOAT = 6; | |
| public function __construct($table_size) {} | |
| public function column($name, $type = null, $size = null) {} | |
| public function create() {} | |
| public function destroy() {} | |
| public function set($key, $value) {} | |
| public function get($key) {} | |
| public function count() {} | |
| public function del($key) {} | |
| public function exist($key) {} | |
| public function incr($key, $column, $incrby = null) {} | |
| public function decr($key, $column, $decrby = null) {} | |
| public function rewind() {} | |
| public function next() {} | |
| public function current() {} | |
| public function key() {} | |
| public function valid() {} | |
| } | |
| class Lock { | |
| public function __construct() {} | |
| public function __destruct() {} | |
| public function lock() {} | |
| public function trylock() {} | |
| public function lock_read() {} | |
| public function trylock_read() {} | |
| public function unlock() {} | |
| } | |
| class Atomic { | |
| public function __construct() {} | |
| public function add() {} | |
| public function sub() {} | |
| public function get() {} | |
| public function set() {} | |
| public function cmpset() {} | |
| } | |
| class Buffer { | |
| public function __construct() {} | |
| public function __destruct() {} | |
| public function __toString() {return "";} | |
| public function substr() {} | |
| public function write() {} | |
| public function read() {} | |
| public function append() {} | |
| public function expand() {} | |
| public function clear() {} | |
| } | |
| class Mysql { | |
| public function __construct() {} | |
| public function __destruct() {} | |
| public function connect() {} | |
| public function query() {} | |
| public function close() {} | |
| public function on() {} | |
| } | |
| class Exception { | |
| final private function __clone() {} | |
| public function __construct($message = null, $code = null, $previous = null) {} | |
| public function __wakeup() {} | |
| final public function getMessage() {} | |
| final public function getCode() {} | |
| final public function getFile() {} | |
| final public function getLine() {} | |
| final public function getTrace() {} | |
| final public function getPrevious() {} | |
| final public function getTraceAsString() {} | |
| public function __toString() {return "";} | |
| } | |
| class Module { | |
| public function __call($func, $params) {} | |
| } | |
| class Mmap { | |
| const MAP_SHARED = 1; | |
| const MAP_PRIVATE = 2; | |
| public static function open($filename, $size = null, $offset = null) {} | |
| } | |
| class Channel { | |
| public function __construct($size) {} | |
| public function __destruct() {} | |
| public function push($data) {} | |
| public function pop() {} | |
| public function stats() {} | |
| } | |
| class Redis { | |
| public function __construct() {} | |
| public function __destruct() {} | |
| public function on($event_name, $callback) {} | |
| public function connect($host, $port, $callback) {} | |
| public function close() {} | |
| public function __call($command, $params) {} | |
| } | |
| } | |
| namespace Swoole\Connection { | |
| class Iterator { | |
| public function rewind() {} | |
| public function next() {} | |
| public function current() {} | |
| public function key() {} | |
| public function valid() {} | |
| public function count() {} | |
| } | |
| } | |
| namespace Swoole\Server { | |
| class Port { | |
| private function __construct() {} | |
| public function __destruct() {} | |
| public function set() {} | |
| public function on() {} | |
| } | |
| } | |
| namespace Swoole\Http { | |
| class Client { | |
| public function __construct($host, $port) {} | |
| public function set() {} | |
| public function setMethod($method) {} | |
| public function setHeaders(array $headers) {} | |
| public function setCookies(array $cookies) {} | |
| /** | |
| * @param string|array $data Request body | |
| */ | |
| public function setData($data) {} | |
| public function addFile() {} | |
| public function execute($uri, callable $callback) {} | |
| public function push() {} | |
| public function get(string $path, callable $callback) {} | |
| public function post(string $path, $params, callable $callback) {} | |
| public function upgrade() {} | |
| public function isConnected() : bool {} | |
| public function close() {} | |
| public function on($event, callable $callback) {} | |
| } | |
| class Server extends \Swoole\Server { | |
| } | |
| class Response { | |
| public function cookie() {} | |
| public function rawcookie() {} | |
| public function status() {} | |
| public function gzip() {} | |
| public function header() {} | |
| public function write() {} | |
| public function end() {} | |
| public function sendfile() {} | |
| public function __destruct() {} | |
| } | |
| class Request { | |
| public $get = []; | |
| public $post = []; | |
| public $cookie = []; | |
| public $files = []; | |
| public $header = []; | |
| public $server = []; | |
| public $data = ''; | |
| public function rawcontent() {} | |
| public function __destruct() {} | |
| } | |
| } | |
| namespace Swoole\Websocket { | |
| class Server { | |
| public function on($event_name, $callback) {} | |
| public function push($fd, $data, $opcode = null, $finish = null) {} | |
| public function exist($fd) {} | |
| public static function pack($data, $opcode = null, $finish = null, $mask = null) {} | |
| public static function unpack($data) {} | |
| public function start() {} | |
| public function __construct($host, $port, $mode = null, $sock_type = null) {} | |
| public function listen($host, $port, $sock_type) {} | |
| public function addlistener($host, $port, $sock_type) {} | |
| public function set($zset) {} | |
| public function send($fd, $send_data, $reactor_id = null) {} | |
| public function sendto($ip, $port, $send_data = null) {} | |
| public function sendwait($conn_fd, $send_data) {} | |
| public function protect($fd, $is_protected = null) {} | |
| public function sendfile($conn_fd, $filename) {} | |
| public function close($fd) {} | |
| public function confirm($fd) {} | |
| public function pause($fd) {} | |
| public function resume($fd) {} | |
| public function task($data, $worker_id) {} | |
| public function taskwait($data, $timeout = null, $worker_id = null) {} | |
| public function taskWaitMulti($tasks, $timeout = null) {} | |
| public function finish($data) {} | |
| public function reload() {} | |
| public function shutdown() {} | |
| public function stop() {} | |
| public function getLastError() {} | |
| public function heartbeat($reactor_id) {} | |
| public function connection_info($fd, $reactor_id) {} | |
| public function connection_list($start_fd, $find_count) {} | |
| public function getClientInfo($fd, $reactor_id) {} | |
| public function getClientList($start_fd, $find_count) {} | |
| public function after($ms, $callback, $param = null) {} | |
| public function tick($ms, $callback) {} | |
| public function clearTimer($timer_id) {} | |
| public function defer($callback) {} | |
| public function sendMessage() {} | |
| public function addProcess() {} | |
| public function stats() {} | |
| public function bind($fd, $uid) {} | |
| } | |
| class Frame {} | |
| } | |
| namespace Swoole\Mysql { | |
| class Exception { | |
| final private function __clone() {} | |
| public function __construct($message = null, $code = null, $previous = null) {} | |
| public function __wakeup() {} | |
| final public function getMessage() {} | |
| final public function getCode() {} | |
| final public function getFile() {} | |
| final public function getLine() {} | |
| final public function getTrace() {} | |
| final public function getPrevious() {} | |
| final public function getTraceAsString() {} | |
| public function __toString() {return "";} | |
| } | |
| } | |
| namespace Swoole\Redis { | |
| class Server { | |
| const NIL = 1; | |
| const ERROR = 0; | |
| const STATUS = 2; | |
| const INT = 3; | |
| const STRING = 4; | |
| const SET = 5; | |
| const MAP = 6; | |
| public function start() {} | |
| public function setHandler($command, $callback, $number_of_string_param = null, $type_of_array_param = null) {} | |
| public static function format($type, $value = null) {} | |
| public function __construct($host, $port, $mode = null, $sock_type = null) {} | |
| public function listen($host, $port, $sock_type) {} | |
| public function addlistener($host, $port, $sock_type) {} | |
| public function on($name, $cb) {} | |
| public function set($zset) {} | |
| public function send($fd, $send_data, $reactor_id = null) {} | |
| public function sendto($ip, $port, $send_data = null) {} | |
| public function sendwait($conn_fd, $send_data) {} | |
| public function exist($fd) {} | |
| public function protect($fd, $is_protected = null) {} | |
| public function sendfile($conn_fd, $filename) {} | |
| public function close($fd) {} | |
| public function confirm($fd) {} | |
| public function pause($fd) {} | |
| public function resume($fd) {} | |
| public function task($data, $worker_id) {} | |
| public function taskwait($data, $timeout = null, $worker_id = null) {} | |
| public function taskWaitMulti($tasks, $timeout = null) {} | |
| public function finish($data) {} | |
| public function reload() {} | |
| public function shutdown() {} | |
| public function stop() {} | |
| public function getLastError() {} | |
| public function heartbeat($reactor_id) {} | |
| public function connection_info($fd, $reactor_id) {} | |
| public function connection_list($start_fd, $find_count) {} | |
| public function getClientInfo($fd, $reactor_id) {} | |
| public function getClientList($start_fd, $find_count) {} | |
| public function after($ms, $callback, $param = null) {} | |
| public function tick($ms, $callback) {} | |
| public function clearTimer($timer_id) {} | |
| public function defer($callback) {} | |
| public function sendMessage() {} | |
| public function addProcess() {} | |
| public function stats() {} | |
| public function bind($fd, $uid) {} | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment