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.10 by root, Thu Dec 14 00:01:35 2006 UTC vs.
Revision 1.11 by root, Thu Dec 14 00:23:59 2006 UTC

268struct SockList 268struct SockList
269{ 269{
270 SockList () : buf (0), len (0) { } 270 SockList () : buf (0), len (0) { }
271 SockList (int size) : buf ((uint8 *)malloc (size)), len (0) { } 271 SockList (int size) : buf ((uint8 *)malloc (size)), len (0) { }
272 272
273 void reset () { len = 0; }
273 int length () const { return len; } 274 int length () const { return len; }
274 275
275 SockList &operator <<(uint8 v) { buf [len++] = v; return *this; } 276 SockList &operator <<(uint8 v) { buf [len++] = v; return *this; }
276 277
277 SockList &operator <<(uint16 v) { return *this << uint8 (v >> 8) << uint8 (v); } 278 SockList &operator <<(uint16 v) { return *this << uint8 (v >> 8) << uint8 (v); }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines