public int $bytesReceived
private Protocol $protocol
public __construct(Protocol $protocol, ?string $guid): void
Parameter | Type | Description |
---|
$protocol | Protocol | |
$guid | string | |
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 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 | |
private processPacket(?string $buffer): string
Parameter | Type | Description |
---|
$buffer | string | |
Generated by Hazaar API Doc Generator