![]() |
Blamite Game Engine - blam!
00296.01.12.21.0102.blamite
The core library for the Blamite Game Engine.
|
Namespace containing things related to networking. More...
Classes | |
struct | PacketBuffer |
struct | Socket |
Enumerations | |
enum | ClientMessages : UINT16 { ClientHello = 10100, KeepAlive = 10108 } |
enum | ServerMessages : UINT16 { ServerHello = 20100, KeepAliveOK = 20108 } |
Functions | |
BLAM UINT32 | ClientHelloMessage (UINT8 *buffer) |
BLAM UINT32 | ServerHelloMessage (UINT8 *buffer, bool success) |
BLAM UINT32 | KeepAliveMessage (UINT8 *buffer) |
BLAM bool | Init () |
BLAM bool | Start (Socket *socket, LinearAllocator *allocator) |
BLAM void | Close (Socket *socket) |
BLAM bool | Bind (Socket *socket, Endpoint *endpoint) |
BLAM bool | Send (Socket *socket, UINT8 *packet, UINT32 packetSize, Endpoint *endpoint) |
BLAM bool | Receive (Socket *socket, UINT8 *buffer, UINT32 bufferSize, UINT32 *packetSizeOut, Endpoint *endpoint) |
BLAM bool | IsConnected () |
BLAM void | HandleReceive (Socket *sock, UINT8 *socketBuffer, UINT32 bufferSize, UINT32 *outPacketSize, Endpoint *outFrom) |
Namespace containing things related to networking.
enum Blam::Network::ClientMessages : UINT16 |
enum Blam::Network::ServerMessages : UINT16 |
UINT32 Blam::Network::ClientHelloMessage | ( | UINT8 * | buffer | ) |
void Blam::Network::Close | ( | Socket * | socket | ) |
void Blam::Network::HandleReceive | ( | Socket * | sock, |
UINT8 * | socketBuffer, | ||
UINT32 | bufferSize, | ||
UINT32 * | outPacketSize, | ||
Endpoint * | outFrom | ||
) |
bool Blam::Network::Init | ( | ) |
bool Blam::Network::IsConnected | ( | ) |
UINT32 Blam::Network::KeepAliveMessage | ( | UINT8 * | buffer | ) |
bool Blam::Network::Receive | ( | Socket * | socket, |
UINT8 * | buffer, | ||
UINT32 | bufferSize, | ||
UINT32 * | packetSizeOut, | ||
Endpoint * | endpoint | ||
) |
bool Blam::Network::Send | ( | Socket * | socket, |
UINT8 * | packet, | ||
UINT32 | packetSize, | ||
Endpoint * | endpoint | ||
) |
BLAM UINT32 Blam::Network::ServerHelloMessage | ( | UINT8 * | buffer, |
bool | success | ||
) |
bool Blam::Network::Start | ( | Socket * | socket, |
LinearAllocator * | allocator | ||
) |