diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2007-03-31 10:23:00 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2007-03-31 10:23:00 +0000 |
commit | eba3a8635b308475aa4bcfc5f5cd058c48ed679d (patch) | |
tree | c6c44e6d8d53f97d6fed0177fe5a07ce432a4b0e /src/net/messageout.hpp | |
parent | bd9b9a04c0ec07c957014d0679d386c7b42e5312 (diff) | |
download | manaserv-eba3a8635b308475aa4bcfc5f5cd058c48ed679d.tar.gz manaserv-eba3a8635b308475aa4bcfc5f5cd058c48ed679d.tar.bz2 manaserv-eba3a8635b308475aa4bcfc5f5cd058c48ed679d.tar.xz manaserv-eba3a8635b308475aa4bcfc5f5cd058c48ed679d.zip |
Moved writing of outgoing messages into MessageOut and added printing of the
message ID.
Diffstat (limited to 'src/net/messageout.hpp')
-rw-r--r-- | src/net/messageout.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/net/messageout.hpp b/src/net/messageout.hpp index 8ec6b171..bb252c24 100644 --- a/src/net/messageout.hpp +++ b/src/net/messageout.hpp @@ -91,6 +91,12 @@ class MessageOut char *mData; /**< Data building up. */ unsigned int mPos; /**< Position in the data. */ unsigned int mDataSize; /**< Allocated datasize. */ + + /** + * Streams message ID and length to the given output stream. + */ + friend std::ostream& operator <<(std::ostream &os, + const MessageOut &msg); }; #endif //_TMWSERV_MESSAGEOUT_H_ |