public int $bytesReceived
public int $socketLastError
protected string $host = '127.0.0.1'
protected int $port = 13080
protected bool $connected
protected Protocol $protocol
public string $frameBuffer
public string $payloadBuffer
public __construct(Protocol $protocol, ?string $guid, array $headers): void
Parameter | Type | Description |
---|
$protocol | Protocol | |
$guid | string | |
$headers | array | |
public __destruct(): void
public configure(array $config): void
Parameter | Type | Description |
---|
$config | array | |
Get the host of the Warlock server.
Get the port of the Warlock server.
Connect to the Warlock server.
public getLastSocketError(bool $asString): string
Parameter | Type | Description |
---|
$asString | bool | |
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 | |
protected processFrame(?string $frameBuffer): string
Parameter | Type | Description |
---|
$frameBuffer | string | |
Generated by Hazaar API Doc Generator on Wed, 25 Jun 2025 06:07:11 +0000