diff options
author | Aaron Marks <nymacro@gmail.com> | 2005-07-13 02:59:19 +0000 |
---|---|---|
committer | Aaron Marks <nymacro@gmail.com> | 2005-07-13 02:59:19 +0000 |
commit | b426d3e5d269007f95360e40f906c5568a5abc99 (patch) | |
tree | 0dd6a4ad8ed1db374b74b6ea01d0eacb7dd50abb /src/messageout.h | |
parent | 960f631a2be601357424f9e6c5cdc64b68bff856 (diff) | |
download | manaserv-b426d3e5d269007f95360e40f906c5568a5abc99.tar.gz manaserv-b426d3e5d269007f95360e40f906c5568a5abc99.tar.bz2 manaserv-b426d3e5d269007f95360e40f906c5568a5abc99.tar.xz manaserv-b426d3e5d269007f95360e40f906c5568a5abc99.zip |
Implemented MessageOut.
Rewrote MessageIn::readString - it was overly complex and didn't operate
correctly.
Update test client so it sends a login message.
Diffstat (limited to 'src/messageout.h')
-rw-r--r-- | src/messageout.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/messageout.h b/src/messageout.h index d48cb899..df49881e 100644 --- a/src/messageout.h +++ b/src/messageout.h @@ -42,8 +42,8 @@ class MessageOut ~MessageOut(); void writeByte(char value); /**< Reads a byte. */ - void writeShort(short value); /**< Reads a short. */ - void writeLong(long value); /**< Reads a long. */ + void writeShort(unsigned short value);/**< Reads a short. */ + void writeLong(unsigned long value); /**< Reads a long. */ /** * Writes a string. If a fixed length is not given (-1), it is stored @@ -59,6 +59,7 @@ class MessageOut private: Packet *packet; /**< Created packet. */ + unsigned int pos; /**< Current position in packet */ }; #endif |