public int $bytesReceived
private Protocol $protocol
public __construct(Protocol $protocol, ?string $guid): void
| Parameter | Type | Description |
|---|
$protocol | Protocol | |
$guid | string | |
public configure(array $config): void
| Parameter | Type | Description |
|---|
$config | array | |
public disconnect(): bool
public send(PacketType $command, mixed $payload): bool
| Parameter | Type | Description |
|---|
$command | PacketType | |
$payload | mixed | |
public recv(mixed $payload, int $tvSec = 3, int $tvUsec): PacketType
| Parameter | Type | Description |
|---|
$payload | mixed | |
$tvSec | int | |
$tvUsec | int | |
private processPacket(?string $buffer): string
| Parameter | Type | Description |
|---|
$buffer | string | |
Generated by Hazaar API Doc Generator on Mon, 27 Oct 2025 13:01:30 +0000