summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-02-07 08:44:42 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-02-07 08:44:42 +0100
commit92981dcb3c1f4ac0929a9a858eb702953e8870c8 (patch)
tree07e1e599bcb585a08d9e039a648aec321832cf1a
parentcSocket: Added more functions that will be needed for the new cSocketThreads (diff)
downloadcuberite-92981dcb3c1f4ac0929a9a858eb702953e8870c8.tar
cuberite-92981dcb3c1f4ac0929a9a858eb702953e8870c8.tar.gz
cuberite-92981dcb3c1f4ac0929a9a858eb702953e8870c8.tar.bz2
cuberite-92981dcb3c1f4ac0929a9a858eb702953e8870c8.tar.lz
cuberite-92981dcb3c1f4ac0929a9a858eb702953e8870c8.tar.xz
cuberite-92981dcb3c1f4ac0929a9a858eb702953e8870c8.tar.zst
cuberite-92981dcb3c1f4ac0929a9a858eb702953e8870c8.zip
-rw-r--r--source/cServer.h4
-rw-r--r--source/packets/cPacket.h4
2 files changed, 3 insertions, 5 deletions
diff --git a/source/cServer.h b/source/cServer.h
index b2a46f78a..db60a2742 100644
--- a/source/cServer.h
+++ b/source/cServer.h
@@ -1,8 +1,6 @@
+
#pragma once
-class cEvent;
-class cSemaphore;
-class cCriticalSection;
class cPlayer;
class cClientHandle;
class cPacket;
diff --git a/source/packets/cPacket.h b/source/packets/cPacket.h
index 702b3e369..817aa1a27 100644
--- a/source/packets/cPacket.h
+++ b/source/packets/cPacket.h
@@ -16,8 +16,8 @@ public:
{}
virtual ~cPacket() {}
- virtual bool Parse( cSocket & a_Socket) { a_Socket=0; printf("ERROR: Undefined NEW Parse function %x\n", m_PacketID ); return false; }
- virtual bool Send( cSocket & a_Socket) { a_Socket=0; printf("ERROR: Undefined NEW Send function %x\n", m_PacketID ); return false; }
+ virtual bool Parse( cSocket & a_Socket) {a_Socket.CloseSocket(); LOGERROR("Undefined NEW Parse function %x\n", m_PacketID ); return false; }
+ virtual bool Send( cSocket & a_Socket) {a_Socket.CloseSocket(); LOGERROR("Undefined NEW Send function %x\n", m_PacketID ); return false; }
virtual cPacket* Clone() const = 0;
unsigned char m_PacketID;