书栈网 · BookStack 本次搜索耗时 0.013 秒,为您找到 939 个相关结果.
  • Swoole技术会议

    Swoole技术会议 11.23 上海 GIAC 全球互联网架构大会 11.17 北京 2018 PHP程序员年会 10.27 杭州 CNCC(中国计算机大会) 更多 Swoole技术会议 11.23 上海 GIAC 全球互联网架构大会 2018年11月23日 ~ 11月24日 上海淳大万丽酒店 分享嘉宾:韩天峰-Rango http:...
  • Swoole的实现

    Swoole的实现 socket部分 IO事件循环 多进程/多线程 EventFd SIgnalfd Swoole的实现 Swoole 使用C/C++ 11 编写,不依赖其他第三方库。 swoole并没有用libevent,所以不需要安装libevent swoole并不依赖php的stream/sockets/pcntl/posix/...
  • 如何学习Swoole

    学习Swoole之如何避免成为被坑哭的程序员 swoole下常见的”坑” 使用swoole要学习的知识点 总结 学习Swoole之如何避免成为被坑哭的程序员 很多刚从传统fpm模式转到swoole内存常驻模式的phper,总会觉得内心委屈,甚至想哭,原因swoole总会让你怀疑人生,这真的是我之前所认知的那个php语言吗?怎么那么坑啊。 ...
  • Swoole Http Server

    Swoole Http Server Nginx转发规则 Apache转发规则 常见问题 CURL发送POST请求服务器端超时 其他客户端 使用Chrome/FireFox访问服务器会产生2次请求 GET/POST请求的最大尺寸 GET请求最大8192 POST/文件上传 Swoole Http Server swoole-1.7....
  • swoole_event_defer

    swoole_event_defer 使用示例 swoole_event_defer 在下一个事件循环开始时执行函数。 swoole_event_defer ( mixed $callback_function ); swoole_event_defer 的回调函数会在当前EventLoop 的事件循环结束、下一次事件循环开始前执行。 ...
  • swoole_event_add

    swoole_event_add 函数原型 参数 返回值 使用实例 回调函数 swoole_event_add 将一个socket加入到底层的reactor 事件监听中。此函数可以用在Server 或Client 模式下。 函数原型 bool swoole_event_add ( mixed $sock , mixed $read...
  • swoole_timer_after

    swoole_timer_after 协程模式 使用示例 swoole_timer_after 在指定的时间后执行函数。 int swoole_timer_after ( int $after_time_ms , mixed $callback_function ); swoole_timer_after 函数是一个一次性定时器...
  • Swoole的进程模型

    1225 2019-04-22 《Swoole入门教程》
    前言 并发之始 进程模型 进程模型与数据共享 小结 回顾 前言 前文再续,就书接上一回,随着与Server、TCP、Protocol的邂逅,Swoole终于迎来了自己的故事,今天,我们来聊聊Swoole的进程模型。 前边几篇东西虽然标题是Swoole,其主要讲的是操作系统、计算机网络方面的知识,包括一点点笔者自己的私货,今天终于放假了,...
  • swoole_event_dispatch

    swoole_event_dispatch swoole_event_dispatch 仅执行一次reactor->wait 操作,在Linux 平台下相当手工调用一次epoll_wait 。与swoole_event_wait 不同的是,swoole_event_wait 在底层内部维持了循环。 void swoole_event_dispat...
  • swoole_event_wait

    swoole_event_wait swoole_event_wait 函数原型: void swoole_event_wait ( void ); PHP5.4之前的版本没有在ZendAPI中加入注册shutdown函数。所以swoole无法在脚本结尾处自动进行事件轮询。所以低于5.4的版本,需要在你的PHP脚本结尾处加swoole_...