#include <MercuryNetServer.h>
Collaboration diagram for MercuryNetServer:
Public Member Functions | |
MercuryNetServer () | |
~MercuryNetServer () | |
void | BroadcastToAllClients (const MString &sMessage, const PStack &pParameters) |
bool | BindAndListen (int iPort, GenClientFunction cbFunction=&DefaultSocketConnection) |
void | LinkODE (MercuryODEWorld *pWorld) |
void | Update (const float dTime) |
void | CoreThread () |
void | CoreUDPThread () |
void | UpdateODE (const MString &sNameOfObject="") |
void | UpdateSingleODE (const MString &sObjectName) |
Static Public Member Functions | |
static void * | CoreThreadCaller (void *NetClient) |
static void * | CoreUDPThreadCaller (void *NetClient) |
Protected Attributes | |
ezSockets * | m_pListener |
ezSockets * | m_pUDPListener |
GenClientFunction | m_cbGenFunction |
MercuryThread | m_thdMain |
MercuryThread | m_thdUDPMain |
MDeque< MercuryNetServerConnection * > | m_vClients |
MercuryODEWorld * | m_pWorld |
MercuryTimer | m_tmrSync |
float | m_fTimeSinceLastODE |
Friends | |
class | MercuryNetServerConnection |
Definition at line 52 of file MercuryNetServer.h.
MercuryNetServer::MercuryNetServer | ( | ) |
Definition at line 112 of file MercuryNetServer.cpp.
MercuryNetServer::~MercuryNetServer | ( | ) |
Definition at line 118 of file MercuryNetServer.cpp.
void MercuryNetServer::BroadcastToAllClients | ( | const MString & | sMessage, | |
const PStack & | pParameters | |||
) |
Definition at line 134 of file MercuryNetServer.cpp.
bool MercuryNetServer::BindAndListen | ( | int | iPort, | |
GenClientFunction | cbFunction = &DefaultSocketConnection | |||
) |
Definition at line 140 of file MercuryNetServer.cpp.
void MercuryNetServer::LinkODE | ( | MercuryODEWorld * | pWorld | ) | [inline] |
Definition at line 62 of file MercuryNetServer.h.
void MercuryNetServer::Update | ( | const float | dTime | ) |
Definition at line 167 of file MercuryNetServer.cpp.
void * MercuryNetServer::CoreThreadCaller | ( | void * | NetClient | ) | [static] |
Definition at line 243 of file MercuryNetServer.cpp.
void * MercuryNetServer::CoreUDPThreadCaller | ( | void * | NetClient | ) | [static] |
Definition at line 262 of file MercuryNetServer.cpp.
void MercuryNetServer::CoreThread | ( | ) |
Definition at line 249 of file MercuryNetServer.cpp.
void MercuryNetServer::CoreUDPThread | ( | ) |
Definition at line 268 of file MercuryNetServer.cpp.
void MercuryNetServer::UpdateODE | ( | const MString & | sNameOfObject = "" |
) |
Definition at line 178 of file MercuryNetServer.cpp.
void MercuryNetServer::UpdateSingleODE | ( | const MString & | sObjectName | ) |
friend class MercuryNetServerConnection [friend] |
Definition at line 86 of file MercuryNetServer.h.
ezSockets* MercuryNetServer::m_pListener [protected] |
Definition at line 74 of file MercuryNetServer.h.
ezSockets* MercuryNetServer::m_pUDPListener [protected] |
Definition at line 75 of file MercuryNetServer.h.
GenClientFunction MercuryNetServer::m_cbGenFunction [protected] |
Definition at line 78 of file MercuryNetServer.h.
MercuryThread MercuryNetServer::m_thdMain [protected] |
Definition at line 79 of file MercuryNetServer.h.
MercuryThread MercuryNetServer::m_thdUDPMain [protected] |
Definition at line 80 of file MercuryNetServer.h.
MDeque< MercuryNetServerConnection * > MercuryNetServer::m_vClients [protected] |
Definition at line 82 of file MercuryNetServer.h.
MercuryODEWorld* MercuryNetServer::m_pWorld [protected] |
Definition at line 84 of file MercuryNetServer.h.
MercuryTimer MercuryNetServer::m_tmrSync [protected] |
Definition at line 85 of file MercuryNetServer.h.
float MercuryNetServer::m_fTimeSinceLastODE [protected] |
Definition at line 88 of file MercuryNetServer.h.