Hubwiz.com
|
Online Course
|
API Manual
Swoole Chinese API Manual
Keyword(479)
Keyword
Swoole-wiki
入门指引
环境依赖
编译安装
编译参数
常见错误
运行程序
创建TCP服务器
创建UDP服务器
创建Web服务器
创建WebSocket服务器
设置定时器
执行异步任务
创建同步TCP客户端
创建异步TCP客户端
网络通信协议设计
编程须知
sleep/usleep的影响
exit/die函数的影响
while循环的影响
版本更新记录
v2.0.1-Alpha
v1.9.2
v1.9.1
v1.9.0
v1.8.13
v1.8.12
v1.8.11
v1.8.10
新特性使用
使用迭代器遍历Server所有连接
在Server中使用swoole_table
swoole_client支持sendfile接口
SSL隧道加密TCP-Server
task进程中使用毫秒定时器
固定包头+包体协议自动分包
onTask直接return取代finish函数
swoole_process多进程模块的使用
task进程使用消息队列
swoole编译安装-常见问题
升级swoole版本的常见问题
生成可分发的二进制swoole版本
Connectionrefused是怎么回事
Resourcetemporarilyunavailable[11]
Cannotassignrequestedaddress[99]
pcre.h:Nosuchfileordirectory
在phpinfo中有在php-m中没有
swoole与node.js相比有哪些优势
swoole与golang相比有哪些优势
my_global.h:Nosuchfileordirectory
undefinedsymbol:__sync_bool_compare_and_swap_4
学习Swoole需要掌握哪些基础知识
同步阻塞与异步非阻塞适用场景
周边相关项目
框架
工具
开发者列表
php.ini选项
项目路线图
提交错误报告
内核参数调整
Server
server函数列表
swoole_server::__construct
swoole_server::set
swoole_server::on
swoole_server::addListener
swoole_server::addProcess
swoole_server::listen
swoole_server::start
swoole_server::reload
swoole_server::stop
swoole_server::shutdown
swoole_server::tick
swoole_server::after
swoole_server::defer
swoole_server::clearTimer
swoole_server::close
swoole_server::send
swoole_server::sendfile
swoole_server::sendto
swoole_server::sendwait
swoole_server::sendMessage
swoole_server::exist
swoole_server::pause
swoole_server::resume
swoole_server::connection_info
swoole_server::connection_list
swoole_server::bind
swoole_server::stats
swoole_server::task
swoole_server::taskwait
swoole_server::taskWaitMulti
swoole_server::finish
swoole_server::heartbeat
swoole_server::getLastError
server-属性列表
swoole_server::$setting
swoole_server::$master_pid
swoole_server::$manager_pid
swoole_server::$worker_id
swoole_server::$worker_pid
swoole_server::$taskworker
swoole_server::$connections
server-配置选项
reactor_num
worker_num
max_request
max_conn(max_connection)
task_worker_num
task_ipc_mode
task_max_request
task_tmpdir
dispatch_mode
message_queue_key
daemonize
backlog
log_file
log_level
heartbeat_check_interval
heartbeat_idle_time
open_eof_check
open_eof_split
package_eof
open_length_check
package_length_type
package_max_length
open_cpu_affinity
cpu_affinity_ignore
open_tcp_nodelay
tcp_defer_accept
ssl_cert_file
ssl_method
user
group
chroot
pipe_buffer_size
buffer_output_size
socket_buffer_size
enable_unsafe_event
discard_timeout_request
enable_reuse_port
ssl_ciphers
enable_delay_receive
监听端口
可选参数
可选回调
server-事件回调函数
onStart
onShutdown
onWorkerStart
onWorkerStop
onTimer
onConnect
onReceive
onPacket
onClose
onTask
onFinish
onPipeMessage
onWorkerError
onManagerStart
onManagerStop
Swoole-高级特性
改变Worker进程的用户/组
回调函数中的from_id和fd
Buffer和EOF_Check的使用
Worker与Reactor通信模式
TCP-Keepalive死连接检测
TCP服务器心跳维持方案
多端口监听的使用
捕获Server运行期致命错误
swoole_server的3种运行模式介绍
swoole_server中对象的4层生命周期
在worker进程内监听一个Server端口
server-常见问题
为什么不要send完后立即close
如何在回调函数中访问外部的变量
swoole_server中内存管理机制
是否可以共用1个redis或mysql连接
关于onConnect/onReceive/onClose顺序
种PHP回调函数风格
不同的Server程序实例间如何通信
Swoole-压力测试
Nginx/Golang/Swoole/Node.js的性能对比
并发10万TCP连接的测试
Swoole-预定义常量
php.ini选项
Swoole-client
client-方法列表
swoole_client::__construct
swoole_client::set
swoole_client::on
swoole_client::connect
swoole_client::isConnected
swoole_client::getsockname
swoole_client::getpeername
swoole_client::send
swoole_client::sendto
swoole_client::sendfile
swoole_client::recv
swoole_client::close
swoole_client::sleep
swoole_client::wakeup
client-回调函数
swoole_client::onConnect
swoole_client::onError
swoole_client::onReceive
swoole_client::onClose
client-属性列表
swoole_client-
swoole_client-
swoole_client-
Swoole并行
swoole_client_select
TCP客户端异步连接
SWOOLE_KEEP建立TCP长连接
swoole_client-常量
配置选项
Swoole-Process
process-方法列表
swoole_process::__construct
swoole_process::start
swoole_process::name
swoole_process::exec
swoole_process::write
swoole_process::read
swoole_process::useQueue
swoole_process::statQueue
swoole_process::useQueue
swoole_process::push
swoole_process::pop
swoole_process::close
swoole_process::exit
swoole_process::kill
swoole_process::wait
swoole_process::daemon
swoole_process::signal
swoole_process::alarm
swoole_process::setaffinity
Swoole-AsyncIO
异步文件系统IO
swoole_async_readfile
swoole_async_writefile
swoole_async_read
swoole_async_write
swoole_async_dns_lookup
EventLoop
swoole_event_add
swoole_event_set
swoole_event_del
swoole_event_exit
swoole_event_wait
swoole_event_write
异步毫秒定时器
swoole_timer_add
swoole_timer_del
swoole_timer_tick
swoole_timer_after
swoole_timer_clear
异步MySQL客户端
swoole_mysql::construct
swoole_mysql::connect
swoole_mysql::on
swoole_mysql::query
swoole_mysql::close
swoole_get_mysqli_sock
swoole_mysql_query
异步Redis客户端
swoole_redis::on
swoole_redis::connect
swoole_redis::__call
swoole_redis::close
异步Http/WebSocket客户端
swoole_http_client-
swoole_http_client-
swoole_http_client-
swoole_http_client-
swoole_http_client::addFile
swoole_http_client-
swoole_http_client-
swoole_http_client-
Swoole-Memory
Lock
swoole_lock::__construct
swoole_lock::lock
swoole_lock::trylock
swoole_lock::unlock
swoole_lock::lock_read
swoole_lock::trylock_read
Buffer
swoole_buffer::__construct
swoole_buffer::append
swoole_buffer::substr
swoole_buffer::clear
swoole_buffer::expand
swoole_buffer::write
swoole_buffer::read
Table
swoole_table::__construct
swoole_table::column
swoole_table::create
swoole_table::set
swoole_table::incr
swoole_table::decr
swoole_table::get
swoole_table::exist
swoole_table::del
swoole_table::lock
swoole_table::unlock
Table-常量列表
Atomic
swoole_atomic::__construct
swoole_atomic::add
swoole_atomic::sub
swoole_atomic::get
swoole_atomic::set
swoole_atomic::cmpset
mmap
swoole_mmap::open
Channel
Channel::__construct
Channel::push
Channel::pop
Channel::stats
Swoole-HttpServer
swoole_http_server
swoole_http_server::on
swoole_http_server::start
swoole_http_server::setGlobal
swoole_http_request
swoole_http_request::$header
swoole_http_request::$server
swoole_http_request::$get
swoole_http_request::$post
swoole_http_request::$cookie
swoole_http_request::$files
swoole_http_request::rawContent
swoole_http_response
swoole_http_response::header
swoole_http_response::cookie
swoole_http_response::status
swoole_http_response::gzip
swoole_http_response::write
swoole_http_response::sendfile
swoole_http_response::end
配置选项
upload_tmp_dir
http_parse_post
HttpServer-常见问题
CURL发送POST请求服务器端超时
使用Chrome访问服务器会产生2次请求
GET/POST请求的最大尺寸
Swoole-WebSocket
WebSocket-事件回调函数
WebSocket::onHandShake
WebSocket::onOpen
WebSocket::onMessage
WebSocket-函数列表
swoole_websocket_server::push
常见问题
如何判断连接是否为WebSocket客户端
WebSocket-预定义常量
高级
守护进程程序常用数据结构
队列(Queue)
Swoole的实现
Reactor线程
Manager进程
Worker进程
Reactor、Worker、Task的关系
Task/Finish特性的用途
C/C++开发者如何使用Swoole
在php-fpm或apache中使用swoole
Swoole异步与同步的选择
TCP/UDP压测工具
swoole服务器如何做到无人值守100
MySQL的连接池、异步、断线重连
PHP中那些函数是同步阻塞的
使用tcmalloc提升swoole内存分配性能
使用tcmalloc提升swoole内存分配性能
其他
函数列表
swoole_set_process_name
swoole_version
swoole_strerror
swoole_errno
swoole_get_local_ip
swoole_clear_dns_cache
Swoole社区
加入Swoole开发组
附录:Linux信号列表
附录:Linux错误信息(errno)列表
附录:TCP连接的状态
附录:tcpdump抓包工具的使用
附录:strace工具的使用
附录:gdb工具的使用
附录:编译PHP扩展的相关工具
备用:已移除的历史特性
onMasterConnect
onMasterClose
历史:版本更新记录
v1.8.9
v1.8.8
v1.8.7
v1.8.6
v1.8.5
v1.8.4
v1.8.3
v1.8.1
v1.8.1
v1.8.0
v1.7.22
v1.7.21
v1.7.20
v1.7.19
v1.7.18
v1.7.17
v1.7.16
v1.7.15
v1.7.14
v1.7.13
v1.7.12
v1.7.11
v1.7.10
v1.7.9
v1.7.8
v1.7.7
v1.7.6
v1.7.5
v1.7
v1.6
v1.5
Swoole-framework
swoole框架-开发指南
swoole框架-数据库Model类
swoole框架-model::get
swoole框架-model::set
swoole框架-model::del
swoole框架-model::put
swoole框架-model::gets
swoole框架-model::sets
swoole框架-model::dels
swoole框架-model::all
swoole框架-model::count
swoole框架-model::exists
swoole框架-model($model_name)
swoole框架-table($table_name)
swoole框架-Socket网络开发
swoole框架-TCP服务器
swoole框架-Web服务器
swoole框架-WebSocket
swoole框架-Nginx+Swoole服务器配置
swoole框架-Apache+Swoole服务器配置
swoole框架-安装Swoole框架和扩展
swoole框架-数据库ORM接口
swoole框架-控制器Controller
swoole框架-命名空间
swoole框架-文件上传组件
swoole框架-Redis
swoole框架-Database
swoole框架-Swoole\Database::insert
swoole框架-框架规范
swoole框架-目录规范
swoole框架-自定义路由
swoole框架-URL映射规则
swoole框架-示例程序
swoole框架-服务器端程序(Server)
swoole框架-http_server
swoole框架-app_server
swoole框架-soa_server
swoole框架-websocket_server
swoole框架-comet_server
swoole框架-配置文件
swoole_get_local_ip
swoole_get_mysqli_sock
swoole_set_process_name
swoole_strerror
swoole_version