public int $bytesReceived
public int $socketLastError
protected bool $connected
protected Protocol $protocol
public string $frameBuffer
public string $payloadBuffer
public __construct(Protocol $protocol, ?string $guid): void
Parameter | Type | Description |
---|
$protocol | Protocol | |
$guid | string | |
public __destruct(): void
public connect(string $applicationName, string $host, int $port, ?array $extra_headers): bool
Parameter | Type | Description |
---|
$applicationName | string | |
$host | string | |
$port | int | |
$extra_headers | array | |
public getLastSocketError(bool $as_string = false): string
Parameter | Type | Description |
---|
$as_string | bool | |
public disconnect(): bool
public send(string $command, mixed $payload): bool
Parameter | Type | Description |
---|
$command | string | |
$payload | mixed | |
public recv(mixed $payload, int $tv_sec = 3, int $tv_usec = 0): string
Parameter | Type | Description |
---|
$payload | mixed | |
$tv_sec | int | |
$tv_usec | int | |
protected processFrame(?string $frameBuffer): string
Parameter | Type | Description |
---|
$frameBuffer | string | |
Generated by Hazaar API Doc Generator