diff --git a/Annotation/Port.php b/Annotation/Port.php index beeb0bcb..7042a065 100644 --- a/Annotation/Port.php +++ b/Annotation/Port.php @@ -19,8 +19,9 @@ use Snowflake\Snowflake; /** * Port constructor. * @param int $port + * @param int $mode */ - public function __construct(public int $port) + public function __construct(public int $port, public int $mode = SWOOLE_SOCK_TCP) { } diff --git a/Annotation/Porters.php b/Annotation/Porters.php new file mode 100644 index 00000000..267e0459 --- /dev/null +++ b/Annotation/Porters.php @@ -0,0 +1,15 @@ +