Blamite Game Engine - blam!  00296.01.12.21.0102.blamite
The core library for the Blamite Game Engine.
socket.h File Reference
#include <winsock.h>
#include "messages.h"

Go to the source code of this file.

Classes

struct  Blam::Endpoint
 
struct  Blam::Socket
 
struct  Blam::LinearAllocator
 
struct  Blam::Network::PacketBuffer
 
struct  Blam::Network::Socket
 

Namespaces

 Blam
 Namespace surrounding all major engine components.
 
 Blam::Network
 Namespace containing things related to networking.
 

Functions

BLAM void Blam::linearAllocCreate (Blam::LinearAllocator *alloc, UINT64 size)
 
BLAM UINT8 * Blam::linearAlloc (Blam::LinearAllocator *alloc, UINT64 size)
 
BLAM bool Blam::Network::Init ()
 
BLAM bool Blam::Network::Start (Socket *socket, LinearAllocator *allocator)
 
BLAM void Blam::Network::Close (Socket *socket)
 
BLAM bool Blam::Network::Bind (Socket *socket, Endpoint *endpoint)
 
BLAM bool Blam::Network::Send (Socket *socket, UINT8 *packet, UINT32 packetSize, Endpoint *endpoint)
 
BLAM bool Blam::Network::Receive (Socket *socket, UINT8 *buffer, UINT32 bufferSize, UINT32 *packetSizeOut, Endpoint *endpoint)
 
BLAM bool Blam::Network::IsConnected ()
 
BLAM void Blam::Network::HandleReceive (Socket *sock, UINT8 *socketBuffer, UINT32 bufferSize, UINT32 *outPacketSize, Endpoint *outFrom)