2022-01-09 03:49:02 +08:00
|
|
|
<?php
|
|
|
|
|
|
2022-01-10 11:39:55 +08:00
|
|
|
namespace Kiri\Server\Contract;
|
2022-01-09 03:49:02 +08:00
|
|
|
|
2023-04-21 23:09:35 +08:00
|
|
|
use Swoole\Server;
|
|
|
|
|
|
2022-01-09 03:49:02 +08:00
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
interface OnCloseInterface
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2023-04-21 23:09:35 +08:00
|
|
|
* @param Server $server
|
2026-04-04 10:41:53 +08:00
|
|
|
* @param int $fd
|
|
|
|
|
* @param int $reactorId
|
2022-02-22 11:47:16 +08:00
|
|
|
* @return void
|
2022-01-09 03:49:02 +08:00
|
|
|
*/
|
2026-04-04 10:41:53 +08:00
|
|
|
public function onClose(Server $server, int $fd, int $reactorId): void;
|
2022-01-09 03:49:02 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|