<?php
/**
* Swoole Develop Structure
*
* Swoole 结构,便于开发过程中查看文档,以及屏蔽IDE undefined 提示,便于快速查看函数用法。
*
* 本文件使用方式
*
* 普通IDE:
* 开发Swoole项目同时,在IDE中打开/导入本文件即可。
* 如果IDE自带 Include Path 功能(如:PhpStorm),设置该文件路径即可。
*
* PhpStorm 另一种方法:
* WinRAR打开 <Phpstorm_Dir>/plugins/php/lib/php.jar 文件
* 复制 swoole.php 到路径:com\jetbrains\php\lang\psi\stubs\data\
* 保存文件,重启Phpstorm.
*
* PS:替换前请备份php.jar 若发生错误便于恢复 :)
*
* Author:EagleWu <eaglewudi@gmail.com>
* Date: 2014/01/17
*
*/
function swoole_server_set($serv, array $arguments)
{
}
function swoole_server_create($host, $port, $mode = SWOOLE_PROCESS, $sock_type = SWOOLE_SOCK_TCP)
{
}
function swoole_server_addlisten($serv, $host = '127.0.0.1', $port = 9502)
{
}
function swoole_server_addtimer($serv, $interval)
{
}
function swoole_server_handler($serv, $event_name, $event_callback_function)
{
}
function swoole_server_start($serv)
{
}
function swoole_server_reload($serv)
{
}
function swoole_server_close($serv, $fd, $from_id = 0)
{
}
function swoole_server_send($serv, $fd, $data, $from_id = 0)
{
}
function swoole_connection_info($serv, $fd)
{
}
function swoole_connection_list($serv, $start_fd = 0, $pagesize = 10)
{
}
function swoole_set_process_name($name)
{
}
function swoole_event_add($sock, $read_callback = null, $write_callback = null, $flag = null)
{
}
function swoole_event_set($sock, $read_callback = null, $write_callback = null, $flag = null)
{
}
function swoole_event_del($sock)
{
}
function swoole_event_exit()
{
}
function swoole_event_write($socket, $data)
{
}
function swoole_get_mysqli_sock(\mysqli $db)
{
}
function swoole_mysql_query($db, $sql, $callback)
{
}
function swoole_server_task($serv, $data)
{
}
function swoole_server_finish($serv, $response)
{
}
function swoole_server_deltimer($serv, $interval)
{
}
function swoole_server_shutdown($serv)
{
}
function swoole_server_taskwait($task_data, $timeout = 0.5)
{
}
function swoole_event_wait()
{
}
function swoole_timer_add($interval, $callback)
{
}
function swoole_timer_after($ms, $callback, $user_param = null)
{
}
function swoole_timer_del($interval)
{
}
function swoole_timer_clear($timer_id)
{
}
function swoole_timer_tick($ms, $callback, $params = null)
{
}
function swoole_version()
{
}
function swoole_strerror($errno)
{
}
function swoole_errno()
{
}
function swoole_get_local_ip()
{
}
function swoole_async_readfile($filename, $callback)
{
}
function swoole_async_writefile($filename, $content, $callback, $flags = 0)
{
}
function swoole_async_read($filename, $callback, $trunk_size = 8192, $offset = 0)
{
}
function swoole_async_set(array $setting)
{
}
function swoole_async_write($filename, $content, $offset = -1, $callback = null)
{
}
function swoole_async_dns_lookup($domain, $callback)
{
}
function swoole_client_select(array &$read, array &$write, array &$error, $timeout)
{
}
class swoole_http_client extends Swoole\Http\Client
{
}
class swoole_http_request extends Swoole\Http\Request
{
}
class swoole_http_response extends Swoole\Http\Response
{
}
class swoole_http_server extends Swoole\Http\Server
{
}
class swoole_atomic extends Swoole\Atomic
{
}
class swoole_buffer extends Swoole\Buffer
{
}
class swoole_client extends Swoole\Client
{
}
class swoole_server extends Swoole\Server
{
}
class swoole_lock extends Swoole\Lock
{
}
class swoole_redis extends Swoole\Redis
{
}
class swoole_process extends Swoole\Process
{
}
class swoole_table extends Swoole\Table
{
}
class swoole_channel extends Swoole\Channel
{
}
class swoole_redis_server extends Swoole\Redis\Server
{
}
class swoole_websocket_server extends Swoole\WebSocket\Server
{
}
class swoole_websocket_frame extends Swoole\WebSocket\Frame
{
}
class swoole_mysql extends \Swoole\Mysql
{
}
class swoole_http2_client extends \Swoole\Http2\Client
{
}
class swoole_mysql_exception extends \Swoole\Mysql\Exception
{
}
class swoole_serialize extends \Swoole\Serialize
{
}
class Co extends \Swoole\Coroutine
{
}
class Chan extends \Swoole\Coroutine\Channel
{
}
function go($function)
{
}