From 4f17362aeb80e5339c58a5d3b0fbaeb88d9e701c Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Mon, 13 Feb 2012 21:47:03 +0000 Subject: Rewritten most of the code for multithreading; still not 100%, but getting there. If this commit proves to be too problematic, we can always undo it. git-svn-id: http://mc-server.googlecode.com/svn/trunk@251 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cServer.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/cServer.h') diff --git a/source/cServer.h b/source/cServer.h index b56047487..7e42cb1e7 100644 --- a/source/cServer.h +++ b/source/cServer.h @@ -35,9 +35,9 @@ public: //tolua_export int GetPort() { return m_iServerPort; } bool IsConnected(){return m_bIsConnected;} // returns connection status void StartListenClient(); // Listen to client - int RecClient(cClientHandle *sRecSocket); // receive message for a particular socket - void Broadcast( const cPacket & a_Packet, cClientHandle* a_Exclude = 0 ); + void Broadcast(const cPacket & a_Packet, cClientHandle* a_Exclude = NULL) { Broadcast(&a_Packet, a_Exclude); } + void Broadcast(const cPacket * a_Packet, cClientHandle* a_Exclude = NULL); bool Tick(float a_Dt); -- cgit v1.2.3