Swoole
Fly_out
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
swoole创建异步客户端
直接上代码:<?phpclass MyClient{ private $cli; private $ip; private $port; public function __construct($ip, $port) { $this->ip = $ip;//请求地址 $this->port = $port;//端口号原创 2017-06-18 20:08:26 · 1298 阅读 · 0 评论 -
swoole HTTP服务器中异步MySQL
还是直接上代码:<?php$http = new swoole_http_server("0.0.0.0", 9501);$http->on('request', function($request, $response){ $swoole_mysql1 = new Swoole\Coroutine\MySQL(); $swoole_mysql2 = new Swoole\Corou原创 2017-06-19 23:03:12 · 3637 阅读 · 2 评论 -
Swoole中异步连接客户端/请求API
Swoole的异步客户端给我们提供了异步发送请求,接受数据的功能。这里使用异步客户端请求API数据。 上代码:class MyClient{ private $cli; private $ip; private $port; public function __construct($ip, $port, $href) { $this->ip原创 2017-06-22 09:47:20 · 6088 阅读 · 1 评论
分享