#include </home/jenkins/workspace/orxonox_doxygen_trunk/src/libraries/network/MasterServerComm.h>
| orxonox::MasterServerComm::MasterServerComm |
( |
| ) |
|
| orxonox::MasterServerComm::~MasterServerComm |
( |
| ) |
|
| int orxonox::MasterServerComm::connect |
( |
const char * |
address, |
|
|
unsigned int |
port |
|
) |
| |
- Parameters
-
| address | Address to connect to (Host name or IP in text form) |
| port | Port to connect on |
- Returns
- 0 for success, other for error
Connect to the master server with the given address on the given port.
| int orxonox::MasterServerComm::disconnect |
( |
void |
| ) |
|
- Returns
- 0 for success, other for error
Disconnect from master server.
| int orxonox::MasterServerComm::initialize |
( |
| ) |
|
- Returns
- 0 for success, other for error
Initialize everything for the master server communication
| int orxonox::MasterServerComm::pollForReply |
( |
WANDiscovery * |
listener, |
|
|
int |
delayms |
|
) |
| |
- Parameters
-
| listener | The listener to call with data received. |
| delayms | Delay in milliseconds. |
- Returns
- 0 for success, other for error
Poll the master server for new data and act accordingly
| int orxonox::MasterServerComm::sendRequest |
( |
const char * |
data | ) |
|
- Parameters
-
- Returns
- 0 for success, other for error.
Send a request to the master server containing data specified in data
| int orxonox::MasterServerComm::sendRequest |
( |
std::string |
data | ) |
|
- Parameters
-
- Returns
- 0 for success, other for error.
Send a request to the master server containing data specified in data (string version)
| void orxonox::MasterServerComm::update |
( |
| ) |
|
| ENetHost* orxonox::MasterServerComm::client |
|
private |
| ENetPeer* orxonox::MasterServerComm::peer |
|
private |
The documentation for this class was generated from the following files: