… | |
… | |
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 | |
|
|
108 | SockList &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 |