123456789101112131415161718192021222324252627 |
- #ifndef __MESSAGE_H
- #define __MESSAGE_H
- #include <stdio.h>
- #include "datablock.h"
- #include "stringbuilder.h"
- #include "idisposable.h"
- // This is a message to send to the server.
- class message:public idisposable
- {
- public:
- datablock *buffer;
- datastring actual_message;
- message();
- ~message();
- void initialize();
- void setcapacity(int capacity);
- message &operator=(stringbuilder &item);
- void clear();
- bool set(const char *in);
- bool set(const char *in, int len);
- bool set(datastring item);
- message *clone();
- void dispose();
- };
- #endif
|