\Core\StdWorkerInterface

WorkerInterface

Summary

Methods
Constants
launch()
initialize()
handleSocket()
expectSocket()
heartbeat()
destroy()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

launch()

launch() : void

启动服务

initialize()

initialize() : void

初始化

handleSocket()

handleSocket(\Socket  $socket, string  $event) : void

处理套接字

Parameters

\Socket $socket
string $event

expectSocket()

expectSocket(\Socket  $socket) : void

处理异常套接字

Parameters

\Socket $socket

heartbeat()

heartbeat() : void

心跳

destroy()

destroy() : void

释放资源