This commit is contained in:
as2252258@163.com
2021-07-18 12:06:56 +08:00
parent 6f4ed54579
commit 5aa94c1a25
29 changed files with 811 additions and 823 deletions
+53
View File
@@ -0,0 +1,53 @@
<?php
namespace Server\Worker;
use Swoole\Server;
class ServerWorker
{
/**
* @param Server $server
* @param int $workerId
*/
public function onWorkerStart(Server $server, int $workerId)
{
}
/**
* @param Server $server
* @param int $workerId
*/
public function onWorkerStop(Server $server, int $workerId)
{
}
/**
* @param Server $server
* @param int $workerId
*/
public function onWorkerExit(Server $server, int $workerId)
{
}
/**
* @param Server $server
* @param int $worker_id
* @param int $worker_pid
* @param int $exit_code
* @param int $signal
*/
public function onWorkerError(Server $server, int $worker_id, int $worker_pid, int $exit_code, int $signal)
{
}
}