2021-07-19 19:04:13 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace Server\Abstracts;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
use Closure;
|
|
|
|
|
use Exception;
|
2021-08-11 01:04:57 +08:00
|
|
|
use Kiri\Abstracts\Config;
|
|
|
|
|
use Kiri\Event;
|
|
|
|
|
use Kiri\Exception\ConfigException;
|
|
|
|
|
use Kiri\Kiri;
|
2021-08-03 14:06:47 +08:00
|
|
|
use Swoole\Server\Port;
|
2021-07-19 19:04:13 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Class Server
|
|
|
|
|
* @package Server\Abstracts
|
|
|
|
|
*/
|
|
|
|
|
abstract class Server
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
2021-07-21 19:05:11 +08:00
|
|
|
/**
|
|
|
|
|
* Server constructor.
|
|
|
|
|
* @throws Exception
|
|
|
|
|
*/
|
2021-08-12 14:00:44 +08:00
|
|
|
public function __construct(protected \Swoole\Server|Port $server)
|
2021-07-19 19:04:13 +08:00
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|