TeamSpeak 3 PHP Framework
Modern use-at-will framework that provides individual components to manage TeamSpeak 3 Server instances
|
Abstract class for connecting to a TeamSpeak 3 Server through different ways of transport. More...
Public Member Functions | |
__construct (array $config) | |
The TeamSpeak3_Transport_Abstract constructor. More... | |
__destruct () | |
The TeamSpeak3_Transport_Abstract destructor. More... | |
__sleep () | |
Commit pending data. More... | |
__wakeup () | |
Reconnects to the remote server. More... | |
connect () | |
Connects to a remote server. More... | |
disconnect () | |
Disconnects from a remote server. More... | |
getAdapter () | |
Returns the TeamSpeak3_Adapter_Abstract object using this transport. More... | |
getAdapterType () | |
Returns the adapter type. More... | |
getConfig ($key=null, $default=null) | |
Returns the configuration variables in this adapter. More... | |
getMetaData () | |
Returns header/meta data from stream pointer. More... | |
getStream () | |
Returns the underlying stream resource. More... | |
isConnected () | |
Returns TRUE if the transport is connected. More... | |
read ($length=4096) | |
Reads data from the stream. More... | |
send ($data) | |
Writes data to the stream. More... | |
setAdapter (TeamSpeak3_Adapter_Abstract $adapter) | |
Sets the TeamSpeak3_Adapter_Abstract object using this transport. More... | |
Protected Member Functions | |
waitForReadyRead ($time=0) | |
Blocks a stream until data is available for reading if the stream is connected in non-blocking mode. More... | |
Abstract class for connecting to a TeamSpeak 3 Server through different ways of transport.
__construct | ( | array | $config | ) |
The TeamSpeak3_Transport_Abstract constructor.
array | $config |
TeamSpeak3_Transport_Exception |
__destruct | ( | ) |
The TeamSpeak3_Transport_Abstract destructor.
__wakeup | ( | ) |
Reconnects to the remote server.
|
abstract |
|
abstract |
Disconnects from a remote server.
getAdapter | ( | ) |
Returns the TeamSpeak3_Adapter_Abstract object using this transport.
getAdapterType | ( | ) |
Returns the adapter type.
getConfig | ( | $key = null , |
|
$default = null |
|||
) |
getMetaData | ( | ) |
Returns header/meta data from stream pointer.
TeamSpeak3_Transport_Exception |
getStream | ( | ) |
isConnected | ( | ) |
|
abstract |
Reads data from the stream.
integer | $length |
TeamSpeak3_Transport_Exception |
|
abstract |
Writes data to the stream.
string | $data |
setAdapter | ( | TeamSpeak3_Adapter_Abstract | $adapter | ) |
Sets the TeamSpeak3_Adapter_Abstract object using this transport.
TeamSpeak3_Adapter_Abstract | $adapter |
|
protected |
Blocks a stream until data is available for reading if the stream is connected in non-blocking mode.
integer | $time |