Public Member Functions | Protected Member Functions | Static Protected Member Functions | Static Protected Attributes

sp::network::NetworkBaseUDP Class Reference

Base class for all UDP network systems. More...

#include <spNetworkBaseUDP.hpp>

Inheritance diagram for sp::network::NetworkBaseUDP:
sp::network::NetworkBase sp::network::NetworkSessionLogin sp::network::NetworkSessionReception sp::network::NetworkSystemUDP

List of all members.

Public Member Functions

virtual ~NetworkBaseUDP ()

Protected Member Functions

friend THREAD_PROC (NetworkSessionReceptionThread)
 NetworkBaseUDP ()
bool bindSocketToPort (u16 Port)
s32 sendPacketToAddress (const NetworkPacket &Packet, const sockaddr_in &Address)
bool receivePacketFromAddress (NetworkPacket &Packet, sockaddr_in &Address)

Static Protected Member Functions

static s32 sendPacketToAddress (SOCKET Socket, const NetworkPacket &Packet, const sockaddr_in &Address)
static bool receivePacketFromAddress (SOCKET Socket, NetworkPacket &Packet, sockaddr_in &Address, c8 *RecvBuffer, u32 RecvBufferSize)

Static Protected Attributes

static const u32 RECVBUFFER_SIZE = 4096
static c8 RecvBuffer_ [RECVBUFFER_SIZE]

Detailed Description

Base class for all UDP network systems.

Constructor & Destructor Documentation

virtual sp::network::NetworkBaseUDP::~NetworkBaseUDP (  )  [virtual]
sp::network::NetworkBaseUDP::NetworkBaseUDP (  )  [protected]

Member Function Documentation

bool sp::network::NetworkBaseUDP::bindSocketToPort ( u16  Port  )  [protected]
bool sp::network::NetworkBaseUDP::receivePacketFromAddress ( NetworkPacket Packet,
sockaddr_in &  Address 
) [protected]
static bool sp::network::NetworkBaseUDP::receivePacketFromAddress ( SOCKET  Socket,
NetworkPacket Packet,
sockaddr_in &  Address,
c8 RecvBuffer,
u32  RecvBufferSize 
) [static, protected]
s32 sp::network::NetworkBaseUDP::sendPacketToAddress ( const NetworkPacket Packet,
const sockaddr_in &  Address 
) [protected]
static s32 sp::network::NetworkBaseUDP::sendPacketToAddress ( SOCKET  Socket,
const NetworkPacket Packet,
const sockaddr_in &  Address 
) [static, protected]
sp::network::NetworkBaseUDP::THREAD_PROC ( NetworkSessionReceptionThread   )  [protected]

Member Data Documentation

const u32 sp::network::NetworkBaseUDP::RECVBUFFER_SIZE = 4096 [static, protected]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines