TeamSpeak 3 PHP Framework
Modern use-at-will framework that provides individual components to manage TeamSpeak 3 Server instances
|
Class for connecting to a remote server through TCP. More...
Public Member Functions | |
connect () | |
Connects to a remote server. More... | |
disconnect () | |
Disconnects from a remote server. More... | |
read ($length=4096) | |
Reads data from the stream. More... | |
readLine ($token="\) | |
Reads a single line of data from the stream. More... | |
send ($data) | |
Writes data to the stream. More... | |
sendLine ($data, $separator="\) | |
Writes a line of data to the stream. More... | |
Public Member Functions inherited from TeamSpeak3_Transport_Abstract | |
__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... | |
Additional Inherited Members | |
Protected Member Functions inherited from TeamSpeak3_Transport_Abstract | |
waitForReadyRead ($time=0) | |
Blocks a stream until data is available for reading if the stream is connected in non-blocking mode. More... | |
Class for connecting to a remote server through TCP.
connect | ( | ) |
Connects to a remote server.
TeamSpeak3_Transport_Exception |
disconnect | ( | ) |
Disconnects from a remote server.
read | ( | $length = 4096 | ) |
Reads data from the stream.
integer | $length |
TeamSpeak3_Transport_Exception |
readLine | ( | $token = "\n" | ) |
Reads a single line of data from the stream.
string | $token |
TeamSpeak3_Transport_Exception |
send | ( | $data | ) |
Writes data to the stream.
string | $data |
sendLine | ( | $data, | |
$separator = "\n" |
|||
) |
Writes a line of data to the stream.
string | $data | |
string | $separator |