| 1 | =Host= |
| 2 | ==Overview== |
| 3 | The basic task of these classes is the interface between Orxonox and the network engine. This includes creating and opening a server, connecting to a server as client and provide common functions (for Server and Client) like sendChat. |
| 4 | |
| 5 | The Host class is the parent class of Server and Client. It ensures that only one instance of either Server or Client is running (so called Singleton) and provides static functions that both (Server and Client) have to implement. |
| 6 | |
| 7 | ==Host class and common functions== |
| 8 | Below is a list of functions that you might want to use: |
| 9 | || '''Function Name''' || '''Description''' || |
| 10 | || running() || Tells you whether an instance of Server or Client exists (no Information, wheter connected or not) || |
| 11 | || isServer() || Tells you whether the instance is a Server or not || |
| 12 | || sendChat(unsigned char *message) || Sends a message to the server or the clients || |
| 13 | |
| 14 | ==Server class== |
| 15 | |
| 16 | |
| 17 | ==Client class== |
| 18 | |
| 19 | ==Usage Examples== |