This commit is contained in:
2022-10-25 14:58:30 +08:00
parent b74abb5500
commit ffdd692f99
2 changed files with 21 additions and 3 deletions
+20 -1
View File
@@ -21,7 +21,10 @@ class Config
public string $name = '';
public int $mode = SWOOLE_SOCK_TCP;
public int $mode = SWOOLE_PROCESS;
public int $socket = SWOOLE_SOCK_TCP;
public array $settings = [];
@@ -141,4 +144,20 @@ class Config
$this->events = $events;
}
/**
* @return int
*/
public function getSocket(): int
{
return $this->socket;
}
/**
* @param int $socket
*/
public function setSocket(int $socket): void
{
$this->socket = $socket;
}
}