diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-08-31 14:11:23 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-08-31 14:11:23 +0300 |
commit | 544de86739a85792be7e6883968b2af8590d0711 (patch) | |
tree | ecdbe7aa2224e2aca5f3124443c417457bc94775 /src/net/messageout.h | |
parent | a63248380554067d4291c653b4ba82db36fbc821 (diff) | |
download | manaverse-544de86739a85792be7e6883968b2af8590d0711.tar.gz manaverse-544de86739a85792be7e6883968b2af8590d0711.tar.bz2 manaverse-544de86739a85792be7e6883968b2af8590d0711.tar.xz manaverse-544de86739a85792be7e6883968b2af8590d0711.zip |
Add comments for outbound packet fields in debug log.
Diffstat (limited to 'src/net/messageout.h')
-rw-r--r-- | src/net/messageout.h | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/src/net/messageout.h b/src/net/messageout.h index 9d878db35..b2429ab33 100644 --- a/src/net/messageout.h +++ b/src/net/messageout.h @@ -40,24 +40,33 @@ class MessageOut notfinal public: A_DELETE_COPY(MessageOut) - virtual void writeInt8(const int8_t value); /**< Writes a byte. */ + /**< Writes a byte. */ + virtual void writeInt8(const int8_t value, + const char *const str = nullptr); - virtual void writeInt16(int16_t value) = 0; /**< Writes a short. */ + /**< Writes a short. */ + virtual void writeInt16(int16_t value, + const char *const str = nullptr) = 0; - virtual void writeInt32(int32_t value) = 0; /**< Writes a long. */ + /**< Writes a long. */ + virtual void writeInt32(int32_t value, + const char *const str = nullptr) = 0; /** * Writes a string. If a fixed length is not given (-1), it is stored * as a short at the start of the string. */ - virtual void writeString(const std::string &string, int length = -1); + virtual void writeString(const std::string &string, + int length = -1, + const char *const str = nullptr); /** * Writes a string. If a fixed length is not given (-1), it is stored * as a short at the start of the string. */ virtual void writeStringNoLog(const std::string &string, - int length = -1); + int length = -1, + const char *const str = nullptr); /** * Returns the content of the message. |