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

Comparing deliantra/server/include/network.h (file contents):
Revision 1.4 by root, Sat Dec 16 03:08:26 2006 UTC vs.
Revision 1.5 by root, Wed Dec 20 01:19:11 2006 UTC

276 // strategy: only check on variable-length adds 276 // strategy: only check on variable-length adds
277 // and allow 256 bytes for any headers. 277 // and allow 256 bytes for any headers.
278 uint8 *cur; 278 uint8 *cur;
279 uint8 buf_ [hdrlen + bufsize + 256]; 279 uint8 buf_ [hdrlen + bufsize + 256];
280 280
281 packet () { reset (); } 281 packet ()
282 {
283 reset ();
284 }
285
286 packet (const char *name);
282 287
283 uint8 operator [](unsigned int i) const { return buf_ [i + hdrlen]; } 288 uint8 operator [](unsigned int i) const { return buf_ [i + hdrlen]; }
284 uint8 &operator [](unsigned int i) { return buf_ [i + hdrlen]; } 289 uint8 &operator [](unsigned int i) { return buf_ [i + hdrlen]; }
285 290
286 uint8 *buf () { return buf_ + hdrlen; } 291 uint8 *buf () { return buf_ + hdrlen; }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines