ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/socket/lowlevel.C
(Generate patch)

Comparing deliantra/server/socket/lowlevel.C (file contents):
Revision 1.9 by root, Wed Dec 13 18:08:02 2006 UTC vs.
Revision 1.10 by root, Wed Dec 13 18:51:50 2006 UTC

99{ 99{
100 *this << uint16 (v.len); 100 *this << uint16 (v.len);
101 101
102 memcpy (buf + len, v.data, v.len); 102 memcpy (buf + len, v.data, v.len);
103 len += v.len; 103 len += v.len;
104
105 return *this;
106}
107
108SockList &SockList::operator <<(const char *v)
109{
110 if (v)
111 {
112 int l = strlen (v);
113 memcpy (buf + len, v, l);
114 len += l;
115 }
104 116
105 return *this; 117 return *this;
106} 118}
107 119
108/* Basically does the reverse of SockList_AddInt, but on 120/* Basically does the reverse of SockList_AddInt, but on

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines