Connection
in package
Forwards serialized Data clones to a server.
Tags
Table of Contents
- $contextProviders : mixed
- $host : mixed
- $socket : resource|null
- __construct() : mixed
- getContextProviders() : array<string|int, mixed>
- write() : bool
- createSocket() : mixed
- nullErrorHandler() : mixed
Properties
$contextProviders
private
mixed
$contextProviders
$host
private
mixed
$host
$socket
private
resource|null
$socket
Methods
__construct()
public
__construct(string $host[, array<string|int, ContextProviderInterface> $contextProviders = [] ]) : mixed
Parameters
- $host : string
-
The server host
- $contextProviders : array<string|int, ContextProviderInterface> = []
-
Context providers indexed by context name
Return values
mixed —getContextProviders()
public
getContextProviders() : array<string|int, mixed>
Return values
array<string|int, mixed> —write()
public
write(Data $data) : bool
Parameters
- $data : Data
Return values
bool —createSocket()
private
createSocket() : mixed
Return values
mixed —nullErrorHandler()
private
static nullErrorHandler(int $t, string $m) : mixed
Parameters
- $t : int
- $m : string