#include <network.h>
Inherits Module.
Public Member Functions | |
Network () | |
~Network () | |
bool | Load () |
bool | Unload () |
bool | Update () |
void * | AskFor (std::string data) |
void | GetSignal (std::string name) |
void | SetIp (std::string ip) |
void | SetPort (int port) |
bool | HostGame () |
bool | AcceptClient () |
bool | ConnectToHost () |
void | ClientSend () |
void | ClientRecv () |
void | HostSend () |
void | HostRecv () |
Private Attributes | |
TCPsocket | m_sock |
TCPsocket | m_server |
std::string | m_ip |
int | m_port |
int | m_mode |
int | m_modus |
int | m_connected |
Network::Network | ( | ) | [inline] |
Network::~Network | ( | ) | [inline] |
bool Network::Load | ( | ) | [virtual] |
Called, when the module is loaded by the Resource Manager ( or another class)
Implements Module.
bool Network::Unload | ( | ) | [virtual] |
Called, when the module is to be updated the Resource Manager ( or another class)
Implements Module.
bool Network::Update | ( | ) | [virtual] |
Called, when the module is unloaded the Resource Manager ( or another class)
Implements Module.
void* Network::AskFor | ( | std::string | data | ) | [virtual] |
A Function that is called to become a specified pointer
data | the key to specify what you want |
Reimplemented from Module.
void Network::GetSignal | ( | std::string | name | ) | [inline, virtual] |
Called, when a signal is sent to the module
name | the name of the signal |
Reimplemented from Module.
void Network::SetIp | ( | std::string | ip | ) |
void Network::SetPort | ( | int | port | ) |
bool Network::HostGame | ( | ) |
bool Network::AcceptClient | ( | ) |
bool Network::ConnectToHost | ( | ) |
void Network::ClientSend | ( | ) |
void Network::ClientRecv | ( | ) |
void Network::HostSend | ( | ) |
void Network::HostRecv | ( | ) |
TCPsocket Network::m_sock [private] |
TCPsocket Network::m_server [private] |
std::string Network::m_ip [private] |
int Network::m_port [private] |
int Network::m_mode [private] |
int Network::m_modus [private] |
int Network::m_connected [private] |