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

Comparing deliantra/server/include/newclient.h (file contents):
Revision 1.15 by root, Thu Dec 14 01:59:10 2006 UTC vs.
Revision 1.16 by root, Thu Dec 14 02:07:49 2006 UTC

268struct packet 268struct packet
269{ 269{
270 enum { bufsize = MAXSOCKBUF }; 270 enum { bufsize = MAXSOCKBUF };
271 271
272 // strategy: only check on variable-length adds 272 // strategy: only check on variable-length adds
273 // and allow 32 bytes for any headers. 273 // and allow 256 bytes for any headers.
274 uint8 *cur; 274 uint8 *cur;
275 uint8 buf [bufsize + 32]; 275 uint8 buf [bufsize + 256];
276 276
277 packet () { reset (); } 277 packet () { reset (); }
278 278
279 void reset (int offset = 0) { cur = buf + offset; } 279 void reset (int offset = 0) { cur = buf + offset; }
280 int length () const { return cur - buf; } 280 int length () const { return cur - buf; }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines