内容简介:_____ _ __ __ _ / ____| | | \ \ / / | | ® | (_____ _____ ___ | | __\ \ /\ / /__ _ __| | _____ _ __ \___...
_____ _ __ __ _ / ____| | | \ \ / / | | ® | (_____ _____ ___ | | __\ \ /\ / /__ _ __| | _____ _ __ \___ \ \ /\ / / _ \ / _ \| |/ _ \ \/ \/ / _ \| '__| |/ / _ \ '__| ____) \ V V / (_) | (_) | | __/\ /\ / (_) | | | < __/ | |_____/ \_/\_/ \___/ \___/|_|\___| \/ \/ \___/|_| |_|\_\___|_| ================================================= SwooleWorker is a distributed long connection development framework based on Swoole4. [HomePage] https://swoole.plus ================================================= Press [Ctrl+C] to exit, send 'help' to show help. >
SwooleWorker是基于swoole4开发的一款分布式长连接开发框架。常驻内存,协程,高性能高并发;分布式部署,横向扩容,使得能支持庞大的连接数;无感知安全重启,无缝升级代码;接口丰富,支持单个发送,分组发送,群发广播等接口。可广泛应用于云计算、物联网(IOT)、车联网、智能家居、网络游戏等领域。
【官方网站】https://swoole.plus
基本接口
| 接口 | 参数 | 返回值 |
|---|---|---|
| sendToClient | string $client, string $message | |
| sendToUid | string $uid, string $message, array $without_client_list = [] | |
| sendToGroup | string $group, string $message, array $without_client_list = [] | |
| sendToAll | string $message, array $without_client_list = [] | |
| isOnline | string $client | |
| isUidOnline | string $uid | bool |
| getClientListByGroup | string $group, string $prev_client = null | iterable |
| getClientCount | int | |
| getClientCountByGroup | string $group | int |
| getClientList | string $prev_client = null | iterable |
| getClientListByUid | string $uid, string $prev_client = null | iterable |
| getClientInfo | string $client, int $type = 255 | array |
| getUidListByGroup | string $group, bool $unique = true | iterable |
| getUidList | bool $unique = true | iterable |
| getUidCount | float $unique_percent = null | int |
| getGroupList | bool $unique = true | iterable |
| getUidCountByGroup | string $group | int |
| closeClient | string $client, bool $force = false | |
| bindUid | string $client, string $uid | |
| unBindUid | string $client | |
| joinGroup | string $client, string $group | |
| leaveGroup | string $client, string $group | |
| unGroup | string $group | |
| setSession | string $client, array $session | |
| updateSession | string $client, array $session | |
| deleteSession | string $client | |
| getSession | string $client | ?array |
更新日志 V1.0.9
- 可开启或关闭限流服务
- 限流服务由针对fd变更为针对ip
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网
猜你喜欢:- Spring Boot(三):ORM 框架 JPA 与连接池 Hikari
- t-io 3.0.0 发布,不止是 30 万 TCP 长连接框架
- t-io 2.4.0 发布, 不仅仅是百万级 TCP 长连接框架
- tcp 长连接与短连接
- 没有 HTTP 连接池,空谈什么持久连接
- Linux中软连接和硬连接的区别
本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
黑客简史:棱镜中的帝国
刘创 / 电子工业出版社 / 2015-1 / 39.80元
“黑客”,伴随着计算机和互联网而诞生,他们掌握着前沿的计算机和网络技术,能够发现并利用计算机系统和网络的弱点,他们的行为动机多样,因此我们必须对这一群体进行分解,认识他们及其技术的两面性——“黑客”中那些不断拓展技术边界、富于创造力的,和那些掌握技术、却利欲熏心的,就像硬币的两面,谁都无法清晰地辨别是非。相对于主流文化,黑客的行为方式和理念等形成了一种“亚文化”,与主流文化相互作用。一起来看看 《黑客简史:棱镜中的帝国》 这本书的介绍吧!