Blamite Game Engine - blam!  00296.01.12.21.0102.blamite
The core library for the Blamite Game Engine.
Blam::Network Namespace Reference

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)
 

Detailed Description

Namespace containing things related to networking.

Todo:
To be filled in by Vertigo because he's probably the only one who understands this shit.

Enumeration Type Documentation

◆ ClientMessages

Enumerator
ClientHello 
KeepAlive 

◆ ServerMessages

Enumerator
ServerHello 
KeepAliveOK 

Function Documentation

◆ Bind()

bool Blam::Network::Bind ( Socket socket,
Endpoint endpoint 
)

◆ ClientHelloMessage()

UINT32 Blam::Network::ClientHelloMessage ( UINT8 *  buffer)

◆ Close()

void Blam::Network::Close ( Socket socket)

◆ HandleReceive()

void Blam::Network::HandleReceive ( Socket sock,
UINT8 *  socketBuffer,
UINT32  bufferSize,
UINT32 *  outPacketSize,
Endpoint outFrom 
)

◆ Init()

bool Blam::Network::Init ( )

◆ IsConnected()

bool Blam::Network::IsConnected ( )

◆ KeepAliveMessage()

UINT32 Blam::Network::KeepAliveMessage ( UINT8 *  buffer)

◆ Receive()

bool Blam::Network::Receive ( Socket socket,
UINT8 *  buffer,
UINT32  bufferSize,
UINT32 *  packetSizeOut,
Endpoint endpoint 
)

◆ Send()

bool Blam::Network::Send ( Socket socket,
UINT8 *  packet,
UINT32  packetSize,
Endpoint endpoint 
)

◆ ServerHelloMessage()

BLAM UINT32 Blam::Network::ServerHelloMessage ( UINT8 *  buffer,
bool  success 
)

◆ Start()

bool Blam::Network::Start ( Socket socket,
LinearAllocator allocator 
)