This commit is contained in:
2021-07-17 02:16:49 +08:00
parent 878b167d95
commit 51c3637ed2
18 changed files with 912 additions and 420 deletions
+52
View File
@@ -0,0 +1,52 @@
<?php
use Swoole\Server;
class ServerWorker
{
/**
* @param Server $server
* @param int $workerId
*/
public static function onWorkerStart(Server $server, int $workerId)
{
}
/**
* @param Server $server
* @param int $workerId
*/
public static function onWorkerStop(Server $server, int $workerId)
{
}
/**
* @param Server $server
* @param int $workerId
*/
public static 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 static function onWorkerError(Server $server, int $worker_id, int $worker_pid, int $exit_code, int $signal)
{
}
}