ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/client.h
(Generate patch)

Comparing deliantra/server/include/client.h (file contents):
Revision 1.7 by root, Sat Dec 16 21:40:26 2006 UTC vs.
Revision 1.9 by root, Tue Dec 19 04:58:04 2006 UTC

88 int len; 88 int len;
89}; 89};
90 90
91// a handler for a specific type of packet 91// a handler for a specific type of packet
92enum { 92enum {
93 PF_PLAYER = 0x01, // must have valid player 93 PF_PLAYER = 0x01, // must have valid player / will by synchronised
94 PF_IMMEDIATE = 0x02, // TODO: hack, can be executed immediately
95 PF_PLAYING = 0x04, // must be in playing state 94 PF_PLAYING = 0x02, // must be in playing state
96}; 95};
97 96
98struct packet_type 97struct packet_type
99{ 98{
100 const char *name; 99 const char *name;
109 char *data; 108 char *data;
110 int datalen; 109 int datalen;
111 110
112 ~command () 111 ~command ()
113 { 112 {
114 sfree (data, datalen); 113 sfree<char> (data, datalen + 1);
115 } 114 }
116}; 115};
117 116
118/* how many times we are allowed to give the wrong password before being kicked. */ 117/* how many times we are allowed to give the wrong password before being kicked. */
119#define MAX_PASSWORD_FAILURES 5 118#define MAX_PASSWORD_FAILURES 5

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines