summaryrefslogtreecommitdiff
path: root/src/messageout.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-03-18 15:27:39 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-03-18 15:27:39 +0000
commita768f84e87980a48eb25ad95707a44a7eda7f791 (patch)
tree06207c09387a63b410cd052d3845de1ac0f31696 /src/messageout.cpp
parent0c68019a9395b228cdfac9d4b85816ec6319bdb8 (diff)
downloadmanaserv-a768f84e87980a48eb25ad95707a44a7eda7f791.tar.gz
manaserv-a768f84e87980a48eb25ad95707a44a7eda7f791.tar.bz2
manaserv-a768f84e87980a48eb25ad95707a44a7eda7f791.tar.xz
manaserv-a768f84e87980a48eb25ad95707a44a7eda7f791.zip
Small changes to ConnectionHandler and MessageHandler, while adding interfaces
for Packet, MessageIn and MessageOut.
Diffstat (limited to 'src/messageout.cpp')
-rw-r--r--src/messageout.cpp36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/messageout.cpp b/src/messageout.cpp
new file mode 100644
index 00000000..7542b693
--- /dev/null
+++ b/src/messageout.cpp
@@ -0,0 +1,36 @@
+/*
+ * The Mana World Server
+ * Copyright 2004 The Mana World Development Team
+ *
+ * This file is part of The Mana World.
+ *
+ * The Mana World is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * any later version.
+ *
+ * The Mana World is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with The Mana World; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ *
+ * $Id$
+ */
+
+#include "messageout.h"
+
+MessageOut::MessageOut():
+ packet(NULL)
+{
+}
+
+MessageOut::~MessageOut()
+{
+ if (packet) {
+ delete packet;
+ }
+}