Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/archive/tutorialHS08/src/network/packet/Chat.h @ 9501

Last change on this file since 9501 was 1846, checked in by rgrieder, 16 years ago

Merged Revisions 1831 - 1845 to tutorial. This is an update from the trunk.

  • Property svn:eol-style set to native
File size: 567 bytes
Line 
1
2#ifndef NETWORKCHAT_H
3#define NETWORKCHAT_H
4
5#include <string>
6#include <cstring>
7
8#include "Packet.h"
9
10namespace network {
11namespace packet {
12/**
13        @author
14*/
15class Chat : public Packet
16{
17public:
18  Chat( std::string& message, int clientID );
19  Chat( unsigned char* data, int clientID );
20  ~Chat();
21 
22  inline unsigned int getSize() const;
23  bool process();
24 
25  unsigned int getMessageLength(){ return messageLength_; };
26  unsigned char *getMessage();
27private:
28  unsigned int messageLength_;
29  int clientID_;
30};
31
32} //namespace packet
33} //namespace network
34
35#endif
Note: See TracBrowser for help on using the repository browser.