This commit is contained in:
2026-04-04 10:29:39 +08:00
parent 4e999574a9
commit b77321ff4b
6 changed files with 232 additions and 213 deletions
+79
View File
@@ -0,0 +1,79 @@
<?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;
}
}
}