#include <messageout.h>
List of all members.
Detailed Description
Used for building an outgoing message.
With tmwserv, the message is sent using Net::Connection::send() when finished.
Definition at line 40 of file messageout.h.
Constructor & Destructor Documentation
MessageOut::MessageOut |
( |
short |
id |
) |
|
Member Function Documentation
void MessageOut::writeInt8 |
( |
Sint8 |
value |
) |
|
void MessageOut::writeInt16 |
( |
Sint16 |
value |
) |
|
void MessageOut::writeInt32 |
( |
Sint32 |
value |
) |
|
void MessageOut::writeString |
( |
const std::string & |
string, |
|
|
int |
length = -1 | |
|
) |
| | |
Writes a string.
If a fixed length is not given (-1), it is stored as a short at the start of the string.
Definition at line 106 of file messageout.cpp.
char * MessageOut::getData |
( |
|
) |
const |
unsigned int MessageOut::getDataSize |
( |
|
) |
const |
Member Data Documentation
The documentation for this class was generated from the following files: