summaryrefslogtreecommitdiff
path: root/src/net/manaserv/messageout.h
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-05-01 22:38:07 +0200
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-05-05 22:30:00 +0200
commitdf9ed1ab4364fe29bf260cae51827cc2722eff78 (patch)
tree45324f700d2b2c87983fa4b8c5ed01ee2e68ba70 /src/net/manaserv/messageout.h
parent96abc4a9658b3318d0052dc5cd31a3c15d76a494 (diff)
downloadmana-df9ed1ab4364fe29bf260cae51827cc2722eff78.tar.gz
mana-df9ed1ab4364fe29bf260cae51827cc2722eff78.tar.bz2
mana-df9ed1ab4364fe29bf260cae51827cc2722eff78.tar.xz
mana-df9ed1ab4364fe29bf260cae51827cc2722eff78.zip
Added debugging mode to the protocol
This makes the client able to send and receive messages sent in debugging mode, where the contents of the messages are annotated. For messages sent from the client the debugging mode is currently always enabled. Later on this could be an internal option or controlled from the server side. Reviewed-by: Erik Schilling
Diffstat (limited to 'src/net/manaserv/messageout.h')
-rw-r--r--src/net/manaserv/messageout.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/net/manaserv/messageout.h b/src/net/manaserv/messageout.h
index 9a87cf1c..d452f784 100644
--- a/src/net/manaserv/messageout.h
+++ b/src/net/manaserv/messageout.h
@@ -22,6 +22,8 @@
#ifndef NET_MANASERV_MESSAGEOUT_H
#define NET_MANASERV_MESSAGEOUT_H
+#include "net/manaserv/manaserv_protocol.h"
+
#include <cstdint>
#include <string>
@@ -80,9 +82,12 @@ class MessageOut
*/
void expand(size_t size);
- char *mData; /**< Data building up. */
- unsigned int mDataSize; /**< Size of data. */
- unsigned int mPos; /**< Position in the data. */
+ void writeValueType(ManaServ::ValueType type);
+
+ char *mData; /**< Data building up. */
+ unsigned int mPos; /**< Position in the data. */
+ unsigned int mDataSize; /**< Size of data. */
+ bool mDebugMode; /**< Include debugging information. */
};
} // namespace ManaServ