Network Class Reference

#include <network.h>

Inherits Module.

List of all members.

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


Constructor & Destructor Documentation

Network::Network (  )  [inline]

Network::~Network (  )  [inline]


Member Function Documentation

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

Parameters:
data the key to specify what you want
Returns:
a void pointer to the asked data

Reimplemented from Module.

void Network::GetSignal ( std::string  name  )  [inline, virtual]

Called, when a signal is sent to the module

Parameters:
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 (  ) 


Member Data Documentation

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]


The documentation for this class was generated from the following files:
Generated on Wed Feb 21 21:50:47 2007 for Minup by  doxygen 1.5.1-p1