├── .gitignore ├── LICENSE ├── README.md ├── composer.json ├── docs └── zh-CN │ ├── 00.入门必读.md │ ├── 01.快速开始.md │ ├── 02.系统架构.md │ ├── 03.接口.md │ ├── 04.Register详解.md │ ├── 05.Gateway详解.md │ ├── 06.Worker详解.md │ ├── 07.安全重启.md │ ├── 09.分布式部署.md │ ├── 11.SESSION处理.md │ ├── 12.自定义命令.md │ ├── 13.数据库.md │ ├── 14.Redis数据库.md │ ├── 15.HttpApi接口.md │ ├── 16.开启SSL.md │ ├── 18.和Workerman比较.md │ ├── 99.升级指导.md │ └── README.md └── src ├── Api.php ├── Cli.php ├── Cmd ├── BindUid.php ├── CloseClient.php ├── DeleteSession.php ├── GetClientCount.php ├── GetClientCountByGroup.php ├── GetClientCountByUid.php ├── GetClientInfo.php ├── GetClientList.php ├── GetClientListByGroup.php ├── GetClientListByUid.php ├── GetGroupList.php ├── GetSession.php ├── GetUidCount.php ├── GetUidList.php ├── GetUidListByGroup.php ├── IsOnline.php ├── JoinGroup.php ├── LeaveGroup.php ├── Ping.php ├── RegisterWorker.php ├── SendToAll.php ├── SendToClient.php ├── SendToGroup.php ├── SetSession.php ├── UnBindUid.php ├── UnGroup.php └── UpdateSession.php ├── Gateway.php ├── Helper ├── TaskEvent.php └── WorkerEvent.php ├── HttpApi.php ├── Interfaces ├── CmdInterface.php ├── TaskEventInterface.php └── WorkerEventInterface.php ├── Library ├── Client.php ├── ClientPool.php ├── Config.php ├── Globals.php ├── Reload.php ├── Server.php └── SockServer.php ├── Protocol.php ├── Register.php ├── Service.php ├── Worker.php └── init ├── event_task.php ├── event_worker.php ├── gateway.php ├── register.php └── worker.php /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xielei/swoole-worker/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xielei/swoole-worker/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xielei/swoole-worker/HEAD/README.md -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xielei/swoole-worker/HEAD/composer.json -------------------------------------------------------------------------------- /docs/zh-CN/00.入门必读.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xielei/swoole-worker/HEAD/docs/zh-CN/00.入门必读.md -------------------------------------------------------------------------------- /docs/zh-CN/01.快速开始.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xielei/swoole-worker/HEAD/docs/zh-CN/01.快速开始.md -------------------------------------------------------------------------------- /docs/zh-CN/02.系统架构.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xielei/swoole-worker/HEAD/docs/zh-CN/02.系统架构.md -------------------------------------------------------------------------------- /docs/zh-CN/03.接口.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xielei/swoole-worker/HEAD/docs/zh-CN/03.接口.md -------------------------------------------------------------------------------- /docs/zh-CN/04.Register详解.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xielei/swoole-worker/HEAD/docs/zh-CN/04.Register详解.md -------------------------------------------------------------------------------- /docs/zh-CN/05.Gateway详解.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xielei/swoole-worker/HEAD/docs/zh-CN/05.Gateway详解.md -------------------------------------------------------------------------------- /docs/zh-CN/06.Worker详解.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xielei/swoole-worker/HEAD/docs/zh-CN/06.Worker详解.md -------------------------------------------------------------------------------- /docs/zh-CN/07.安全重启.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xielei/swoole-worker/HEAD/docs/zh-CN/07.安全重启.md -------------------------------------------------------------------------------- /docs/zh-CN/09.分布式部署.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xielei/swoole-worker/HEAD/docs/zh-CN/09.分布式部署.md -------------------------------------------------------------------------------- /docs/zh-CN/11.SESSION处理.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xielei/swoole-worker/HEAD/docs/zh-CN/11.SESSION处理.md -------------------------------------------------------------------------------- /docs/zh-CN/12.自定义命令.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xielei/swoole-worker/HEAD/docs/zh-CN/12.自定义命令.md -------------------------------------------------------------------------------- /docs/zh-CN/13.数据库.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xielei/swoole-worker/HEAD/docs/zh-CN/13.数据库.md -------------------------------------------------------------------------------- /docs/zh-CN/14.Redis数据库.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xielei/swoole-worker/HEAD/docs/zh-CN/14.Redis数据库.md -------------------------------------------------------------------------------- /docs/zh-CN/15.HttpApi接口.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xielei/swoole-worker/HEAD/docs/zh-CN/15.HttpApi接口.md -------------------------------------------------------------------------------- /docs/zh-CN/16.开启SSL.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xielei/swoole-worker/HEAD/docs/zh-CN/16.开启SSL.md -------------------------------------------------------------------------------- /docs/zh-CN/18.和Workerman比较.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xielei/swoole-worker/HEAD/docs/zh-CN/18.和Workerman比较.md -------------------------------------------------------------------------------- /docs/zh-CN/99.升级指导.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xielei/swoole-worker/HEAD/docs/zh-CN/99.升级指导.md -------------------------------------------------------------------------------- /docs/zh-CN/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xielei/swoole-worker/HEAD/docs/zh-CN/README.md -------------------------------------------------------------------------------- /src/Api.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xielei/swoole-worker/HEAD/src/Api.php -------------------------------------------------------------------------------- /src/Cli.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xielei/swoole-worker/HEAD/src/Cli.php -------------------------------------------------------------------------------- /src/Cmd/BindUid.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xielei/swoole-worker/HEAD/src/Cmd/BindUid.php -------------------------------------------------------------------------------- /src/Cmd/CloseClient.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xielei/swoole-worker/HEAD/src/Cmd/CloseClient.php -------------------------------------------------------------------------------- /src/Cmd/DeleteSession.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xielei/swoole-worker/HEAD/src/Cmd/DeleteSession.php -------------------------------------------------------------------------------- /src/Cmd/GetClientCount.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xielei/swoole-worker/HEAD/src/Cmd/GetClientCount.php -------------------------------------------------------------------------------- /src/Cmd/GetClientCountByGroup.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xielei/swoole-worker/HEAD/src/Cmd/GetClientCountByGroup.php -------------------------------------------------------------------------------- /src/Cmd/GetClientCountByUid.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xielei/swoole-worker/HEAD/src/Cmd/GetClientCountByUid.php -------------------------------------------------------------------------------- /src/Cmd/GetClientInfo.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xielei/swoole-worker/HEAD/src/Cmd/GetClientInfo.php -------------------------------------------------------------------------------- /src/Cmd/GetClientList.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xielei/swoole-worker/HEAD/src/Cmd/GetClientList.php -------------------------------------------------------------------------------- /src/Cmd/GetClientListByGroup.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xielei/swoole-worker/HEAD/src/Cmd/GetClientListByGroup.php -------------------------------------------------------------------------------- /src/Cmd/GetClientListByUid.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xielei/swoole-worker/HEAD/src/Cmd/GetClientListByUid.php -------------------------------------------------------------------------------- /src/Cmd/GetGroupList.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xielei/swoole-worker/HEAD/src/Cmd/GetGroupList.php -------------------------------------------------------------------------------- /src/Cmd/GetSession.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xielei/swoole-worker/HEAD/src/Cmd/GetSession.php -------------------------------------------------------------------------------- /src/Cmd/GetUidCount.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xielei/swoole-worker/HEAD/src/Cmd/GetUidCount.php -------------------------------------------------------------------------------- /src/Cmd/GetUidList.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xielei/swoole-worker/HEAD/src/Cmd/GetUidList.php -------------------------------------------------------------------------------- /src/Cmd/GetUidListByGroup.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xielei/swoole-worker/HEAD/src/Cmd/GetUidListByGroup.php -------------------------------------------------------------------------------- /src/Cmd/IsOnline.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xielei/swoole-worker/HEAD/src/Cmd/IsOnline.php -------------------------------------------------------------------------------- /src/Cmd/JoinGroup.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xielei/swoole-worker/HEAD/src/Cmd/JoinGroup.php -------------------------------------------------------------------------------- /src/Cmd/LeaveGroup.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xielei/swoole-worker/HEAD/src/Cmd/LeaveGroup.php -------------------------------------------------------------------------------- /src/Cmd/Ping.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xielei/swoole-worker/HEAD/src/Cmd/Ping.php -------------------------------------------------------------------------------- /src/Cmd/RegisterWorker.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xielei/swoole-worker/HEAD/src/Cmd/RegisterWorker.php -------------------------------------------------------------------------------- /src/Cmd/SendToAll.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xielei/swoole-worker/HEAD/src/Cmd/SendToAll.php -------------------------------------------------------------------------------- /src/Cmd/SendToClient.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xielei/swoole-worker/HEAD/src/Cmd/SendToClient.php -------------------------------------------------------------------------------- /src/Cmd/SendToGroup.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xielei/swoole-worker/HEAD/src/Cmd/SendToGroup.php -------------------------------------------------------------------------------- /src/Cmd/SetSession.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xielei/swoole-worker/HEAD/src/Cmd/SetSession.php -------------------------------------------------------------------------------- /src/Cmd/UnBindUid.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xielei/swoole-worker/HEAD/src/Cmd/UnBindUid.php -------------------------------------------------------------------------------- /src/Cmd/UnGroup.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xielei/swoole-worker/HEAD/src/Cmd/UnGroup.php -------------------------------------------------------------------------------- /src/Cmd/UpdateSession.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xielei/swoole-worker/HEAD/src/Cmd/UpdateSession.php -------------------------------------------------------------------------------- /src/Gateway.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xielei/swoole-worker/HEAD/src/Gateway.php -------------------------------------------------------------------------------- /src/Helper/TaskEvent.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xielei/swoole-worker/HEAD/src/Helper/TaskEvent.php -------------------------------------------------------------------------------- /src/Helper/WorkerEvent.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xielei/swoole-worker/HEAD/src/Helper/WorkerEvent.php -------------------------------------------------------------------------------- /src/HttpApi.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xielei/swoole-worker/HEAD/src/HttpApi.php -------------------------------------------------------------------------------- /src/Interfaces/CmdInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xielei/swoole-worker/HEAD/src/Interfaces/CmdInterface.php -------------------------------------------------------------------------------- /src/Interfaces/TaskEventInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xielei/swoole-worker/HEAD/src/Interfaces/TaskEventInterface.php -------------------------------------------------------------------------------- /src/Interfaces/WorkerEventInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xielei/swoole-worker/HEAD/src/Interfaces/WorkerEventInterface.php -------------------------------------------------------------------------------- /src/Library/Client.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xielei/swoole-worker/HEAD/src/Library/Client.php -------------------------------------------------------------------------------- /src/Library/ClientPool.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xielei/swoole-worker/HEAD/src/Library/ClientPool.php -------------------------------------------------------------------------------- /src/Library/Config.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xielei/swoole-worker/HEAD/src/Library/Config.php -------------------------------------------------------------------------------- /src/Library/Globals.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xielei/swoole-worker/HEAD/src/Library/Globals.php -------------------------------------------------------------------------------- /src/Library/Reload.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xielei/swoole-worker/HEAD/src/Library/Reload.php -------------------------------------------------------------------------------- /src/Library/Server.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xielei/swoole-worker/HEAD/src/Library/Server.php -------------------------------------------------------------------------------- /src/Library/SockServer.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xielei/swoole-worker/HEAD/src/Library/SockServer.php -------------------------------------------------------------------------------- /src/Protocol.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xielei/swoole-worker/HEAD/src/Protocol.php -------------------------------------------------------------------------------- /src/Register.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xielei/swoole-worker/HEAD/src/Register.php -------------------------------------------------------------------------------- /src/Service.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xielei/swoole-worker/HEAD/src/Service.php -------------------------------------------------------------------------------- /src/Worker.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xielei/swoole-worker/HEAD/src/Worker.php -------------------------------------------------------------------------------- /src/init/event_task.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xielei/swoole-worker/HEAD/src/init/event_task.php -------------------------------------------------------------------------------- /src/init/event_worker.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xielei/swoole-worker/HEAD/src/init/event_worker.php -------------------------------------------------------------------------------- /src/init/gateway.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xielei/swoole-worker/HEAD/src/init/gateway.php -------------------------------------------------------------------------------- /src/init/register.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xielei/swoole-worker/HEAD/src/init/register.php -------------------------------------------------------------------------------- /src/init/worker.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xielei/swoole-worker/HEAD/src/init/worker.php --------------------------------------------------------------------------------