Provides low-level methods for file transfer communication with a TeamSpeak 3 Server.
More...
Provides low-level methods for file transfer communication with a TeamSpeak 3 Server.
Definition at line 18 of file FileTransfer.php.
◆ __destruct()
PlanetTeamSpeak\TeamSpeak3Framework\Adapter\FileTransfer::__destruct |
( |
| ) |
|
◆ download()
PlanetTeamSpeak\TeamSpeak3Framework\Adapter\FileTransfer::download |
( |
string | $ftkey, |
|
|
int | $size, |
|
|
bool | $passthru = false ) |
Returns the content of a downloaded file as a PlanetTeamSpeak\TeamSpeak3Framework\Helper\StringHelper object.
- Parameters
-
string | $ftkey | |
integer | $size | |
boolean | $passthru | |
- Returns
- StringHelper|void
- Exceptions
-
FileTransferException | |
TransportException | |
Definition at line 106 of file FileTransfer.php.
◆ init()
PlanetTeamSpeak\TeamSpeak3Framework\Adapter\FileTransfer::init |
( |
string | $ftkey | ) |
|
|
protected |
Sends a valid file transfer key to the server to initialize the file transfer.
- Parameters
-
- Returns
- void
- Exceptions
-
Definition at line 50 of file FileTransfer.php.
◆ passthru()
PlanetTeamSpeak\TeamSpeak3Framework\Adapter\FileTransfer::passthru |
( |
int | $size | ) |
|
|
protected |
Outputs all remaining data on a TeamSpeak 3 file transfer stream using PHP's fpassthru() function.
- Parameters
-
- Returns
- void
- Exceptions
-
Definition at line 150 of file FileTransfer.php.
◆ syn()
PlanetTeamSpeak\TeamSpeak3Framework\Adapter\FileTransfer::syn |
( |
| ) |
|
◆ upload()
PlanetTeamSpeak\TeamSpeak3Framework\Adapter\FileTransfer::upload |
( |
string | $ftkey, |
|
|
int | $seek, |
|
|
string | $data ) |
Sends the content of a file to the server.
- Parameters
-
string | $ftkey | |
integer | $seek | |
string | $data | |
- Returns
- void
- Exceptions
-
Definition at line 71 of file FileTransfer.php.
The documentation for this class was generated from the following file: