Class Client
Implementierung eines Standard-Clients.
Um eine Verbindung mit einem Unix-Socket zu öffnen, kann man den Host und Port auf null setzen und einen optionalen Pfad angeben.
new Client(null, null, null, 'unix', '/full/path/to/my/socket.sock');
- Alvine\Core\Alvine implements Serializable uses Alvine\Core\SerializableImplementation
- Alvine\Net\Socket implements Alvine\Core\Observer
- Alvine\Net\Client
Namespace: Alvine\Net
Package: Alvine\Net
Category: Framework
License: Licence
Author: schukai GmbH info@schukai.de
Version: Release: $Revision: 173 $
Since: 20110904
Link: Alvine
Link: http://www.ietf.org/rfc/rfc2821.txt
Located at net/Client.class.php
Package: Alvine\Net
Category: Framework
License: Licence
Author: schukai GmbH info@schukai.de
Version: Release: $Revision: 173 $
Since: 20110904
Link: Alvine
Link: http://www.ietf.org/rfc/rfc2821.txt
Located at net/Client.class.php
public
|
#
__construct( string $host, int $port, int $timeout = null, string $protocol = 'tcp', string $path = null )
Neues Client-Objekt erstellen. Es wird noch keine Verbindung aufgebaut. |
public
|
#
connect( )
Netzwerkverbindung öffnen. Ist bereits eine Verbindung aktiv, so wird diese Verbindung geschlossen und eine neue Verbindung geöffnet. |
public
|
__call(),
__clone(),
__get(),
__set(),
__toString(),
equals(),
getClass(),
getClone(),
getClosure(),
getHashCode(),
getID(),
getShortID(),
isCallable(),
isInstanceOf(),
propertyExists()
|
serialize(),
unserialize()
|
checkAndAdjustSerialisation(),
serialize(),
unserialize()
|
BLOCKING,
NONBLOCKING
|
APIVERSION,
IDENTIFICATION,
SERIALVERSION,
VERSION
|
$availableTransports,
$blockSize,
$connectionMode,
$context,
$flags,
$host,
$log,
$logFlag,
$path,
$port,
$protocol,
$receiveBuffer,
$socket,
$state,
$timeout
|
$hash,
$properties
|