#include <networkinterface.h>
RemoteCmd allows user to send one sided commands to a remote host
You can use it in both Script Editor and scriptModule.
Create a new RemoteCmd remote command object.
bool RemoteCmd::connect |
( |
String & |
machine, |
|
|
int |
port |
|
) |
| |
|
slot |
Connect to a remote machine.
- Parameters
-
machine | String Machine name |
port | Port number |
- Returns
- Succes/Failure of operation
bool RemoteCmd::connected |
( |
| ) |
|
|
slot |
Retrieve connection status
- Returns
- Status
bool RemoteCmd::connectTimeout |
( |
String & |
machine, |
|
|
int |
port, |
|
|
int |
timeout |
|
) |
| |
|
slot |
Connect to a remote machine.
- Parameters
-
machine | String Machine name |
port | Port number |
timeout | Timeout value |
- Returns
- Succes/Failure of operation
void RemoteCmd::disconnect |
( |
| ) |
|
|
slot |
Disconnect from remote machine.
String RemoteCmd::lastReceived |
( |
| ) |
|
|
slot |
Retrieve last received response from server.
- Returns
- Response String
bool RemoteCmd::receive |
( |
int |
timeout | ) |
|
|
slot |
Query response from server.
- Parameters
-
timeout | Time out value in milliseconds. -1 for infinity. |
- Returns
- Success/Failure of operation
bool RemoteCmd::receiveMsg |
( |
int |
timeout | ) |
|
|
slot |
Query a packaged response from server.
- Parameters
-
timeout | Time out value in milliseconds. -1 for infinity. |
- Returns
- Success/Failure of operation
bool RemoteCmd::send |
( |
String & |
cmd | ) |
|
|
slot |
Send a command to remote machine.
- Parameters
-
- Returns
- Success/Failure of operation
bool RemoteCmd::sendMsg |
( |
String & |
msg | ) |
|
|
slot |
Send a packaged message to remote machine.
- Parameters
-
- Returns
- Success/Failure of operation
The documentation for this class was generated from the following file: