#include <NetHost.h>
Definition at line 65 of file NetHost.h.
Construct an ENet packet by serialising the given message.
- Returns
- NULL on failure
Definition at line 49 of file NetHost.cpp.
void CNetHost::Deinitialize |
( |
| ) |
|
|
static |
void CNetHost::Initialize |
( |
| ) |
|
|
static |
Initialize ENet.
This must be called before any other networking code.
Definition at line 70 of file NetHost.cpp.
bool CNetHost::SendMessage |
( |
const CNetMessage * |
message, |
|
|
ENetPeer * |
peer, |
|
|
const char * |
peerName |
|
) |
| |
|
static |
Transmit a message to the given peer.
- Parameters
-
message | message to send |
peer | peer to send to |
peerName | name of peer for debug logs |
- Returns
- true on success, false on failure
Definition at line 26 of file NetHost.cpp.
const int CNetHost::DEFAULT_CHANNEL = 0 |
|
static |
The documentation for this class was generated from the following files: