src/network/Message.h

00001 /*
00002  * Some code is taken from the mana world server project (http://themanaworld.org).
00003  */
00004 
00005 #ifndef MESSAGE_H_
00006 #define MESSAGE_H_
00007 
00008 #include <cstdlib>
00009 #include <cstring>
00010 #include <string>
00011 
00012 #include <SDL/SDL_net.h>
00013 
00014 #define MSG_INVALID (0)         
00015 #define MSG_LOGIN       (1)             
00016 #define MSG_LOGOUT      (2)             
00017 #define MSG_CHAT        (3)             
00018 #define MSG_KA          (4)             
00019 #define MSG_KA_ACK      (5)             
00020 #define MSG_MOVE        (6)             
00026 typedef Uint16 message_type;
00027 
00042 class Message
00043 {
00044 public:
00045 
00052          Message();
00053         
00060         virtual ~Message();
00061                         
00062 };
00063 
00064 #endif /*MESSAGE_H_*/

Generated on Mon Dec 3 04:30:13 2007 for lo-testserver by  doxygen 1.3.9.1