SwooleDistributed
使用前必读
捐赠SwooleDistributed项目
前言:化繁为简,从零开始的框架设计
附录:用户案例
附录:框架性能报告
附录:单元测试
附录:更新日志
1. 开源协议
2. 原理
3. 为何选择SD框架
4. 安装与配置
4.1 环境要求
4.2 启动命令
4.3 服务器配置
4.4 验证服务启动成功
5. 开发流程
5.1 开发前必读
5.2 目录结构
5.3 开发规范
5.4 基本流程
6. 初识协程
6.1 迭代器
6.2 调度器
6.3 协程
6.4 使用协程的优势
6.5 通过协程的方法屏蔽异步同步的区别
6.6 Select多路选择器
7. 路由与封装器
7.1 封装器
7.2 路由器
8. AppServer
8.1 clearState
8.2 onOpenServiceInitialization
8.3 onUidCloseClear
8.4 initAsynPools
9. SwooleDistributedServer
9.1 get_instance
9.2 getRedis
9.3 getMysql
9.4 sendToUid
9.5 sendToUids
9.6 kickUid
9.7 delAllGroups
9.8 bindUid
9.9 unBindUid
9.10 coroutineUidIsOnline
9.11 coroutineCountOnline
9.12 coroutineGetAllGroups
9.13 addToGroup
9.14 removeFromGroup
9.15 delGroup
9.16 coroutineGetGroupCount
9.17 coroutineGetGroupUids
9.18 sendToAll
9.19 sendToGroup
9.20 setTemplateEngine
9.21 isWebSocket
9.22 isTaskWorker
9.23 getSocketName
9.24 initAsynPools
9.25 addAsynPool
9.26 getAsynPool
10. Loader
10.1 model
10.2 task
10.3 view
11. Controller
11.1 __construct
11.2 initialization
11.3 onExceptionHandle
11.4 destroy
11.5 send
11.6 sendToUid
11.7 sendToUids
11.8 sendToAll
11.9 sendToGroup
11.10 kickUid
11.11 bindUid
11.12 unBindUid
11.13 close
11.14 $redis_pool
11.15 $mysql_pool
11.16 $http_input
11.17 $http_output
11.18 $request_type
11.19 $fd
11.20 $uid
11.21 $client_data
11.22 $request
11.23 $response
11.24$loader
11.25 $logger
11.26 $server
11.27 $config
11.28 $client
11.29 defaultMethod
11.30 getContext
12. Model
12.1 __construct
12.2 destroy
12.3 $redis_pool
12.4 $mysql_pool
12.5 $client
12.6 initialization
13. View
14. Task
14.1 耗时Task的中断
15. HttpInput
15.1 postGet
15.2 post
15.3 get
15.4 getPost
15.5 getAllPostGet
15.6 getAllHeader
15.7 getRawContent
15.8 cookie
15.9 getRequestHeader
15.10 server
15.11 getRequestMethod
15.12 getRequestUri
15.13 getPathInfo
16. HttpOutput
16.1 setStatusHeader
16.2 setContentType
16.3 setHeader
16.4 end
16.5 setCookie
16.6 endFile
17. RedisAsynPool
18. MysqlAsynPool
19. 关于WebSocket的一些说明
20. 分布式
20.1 LVS+KeepAlived
21. 常见问题
21.1 如何使用HTTPS
22.2 如何使用多个redis或者多个mysql连接
Powered by
GitBook
9.24 initAsynPools
initAsynPools
1.7.6版本后新增方法
见AppServer中的initAsynPools
results matching "
"
No results matching "
"