Files
kiri-coroutine-server/core/Config.php
T

80 lines
1.1 KiB
PHP
Raw Normal View History

2026-04-04 10:29:39 +08:00
<?php
namespace Coroutine\Server;
class Config
{
public int $port {
get => $this->port;
set(int $value) {
$this->port = $value;
}
}
public string $host {
get => $this->host;
set(string $value) {
$this->host = $value;
}
}
public string $authKey {
get => $this->authKey;
set(string $value) {
$this->authKey = $value;
}
}
public int $writeTimeout {
get => $this->writeTimeout;
set(int $value) {
$this->writeTimeout = $value;
}
}
public int $maxCoroutine {
get => $this->maxCoroutine;
set(int $value) {
$this->maxCoroutine = $value;
}
}
public int $readTimeout {
get => $this->readTimeout;
set(int $value) {
$this->readTimeout = $value;
}
}
public int $maxPackageSize {
get => $this->maxPackageSize;
set(int $value) {
$this->maxPackageSize = $value;
}
}
public int $maxFrameSize {
get => $this->maxFrameSize;
set(int $value) {
$this->maxFrameSize = $value;
}
}
}