#include <Network.h>
Detailed Description
Definition at line 17 of file Network.h.
Constructor & Destructor Documentation
kge::net::Network::Network |
( |
| ) |
|
kge::net::Network::~Network |
( |
| ) |
|
Member Function Documentation
void kge::net::Network::ConnectToServer |
( |
char * |
serverip, |
|
|
int |
port |
|
) |
| |
Connects the client to a server.
- Parameters
-
serverip | The server IP that client wants to connect. |
port | The server port that client wants to connect. |
void kge::net::Network::CreateServer |
( |
int |
maxPlayers, |
|
|
int |
port |
|
) |
| |
Creates a server that clients can connect to.
- Parameters
-
maxPlayers | The maximum number of players can connect to this server. |
port | The server port that listen to and clients connect to this port. |
bool kge::net::Network::GetIsConnected |
( |
| ) |
|
|
inline |
Is it connected to server or not.
Definition at line 51 of file Network.h.
bool kge::net::Network::GetIsServer |
( |
| ) |
|
|
inline |
Returns true if this connection is acting as server.
Definition at line 48 of file Network.h.
RakNet::RakPeerInterface* kge::net::Network::GetRakPeer |
( |
| ) |
|
|
inline |
Returns the RakPeerInterface pointer.
Definition at line 54 of file Network.h.
void kge::net::Network::Run |
( |
| ) |
|
Runs the network system and process packets.
Member Data Documentation
bool kge::net::Network::m_bIsConnected |
|
protected |
bool kge::net::Network::m_bIsServer |
|
protected |
bool kge::net::Network::m_bIsServerChanged |
|
protected |
RakNet::RakPeerInterface* kge::net::Network::m_pPeer |
|
protected |
The documentation for this class was generated from the following file: