… | |
… | |
163 | /* Do this so we don't send a face command for the client for |
163 | /* Do this so we don't send a face command for the client for |
164 | * this face. Face 0 is sent to the client to say clear |
164 | * this face. Face 0 is sent to the client to say clear |
165 | * face information. |
165 | * face information. |
166 | */ |
166 | */ |
167 | faces_sent[0] = true; |
167 | faces_sent[0] = true; |
|
|
168 | fx_want [FT_FACE] = true; // all clients must support image faces |
168 | |
169 | |
169 | socket_ev.prio (PE_PRIO_NORMAL); |
170 | socket_ev.prio (PE_PRIO_NORMAL); |
170 | socket_ev.fd (fd); |
171 | socket_ev.fd (fd); |
171 | socket_ev.poll (PE_R); |
172 | socket_ev.poll (PE_R); |
172 | |
173 | |
… | |
… | |
243 | |
244 | |
244 | static living zero_living; |
245 | static living zero_living; |
245 | last_stats = zero_living; |
246 | last_stats = zero_living; |
246 | } |
247 | } |
247 | |
248 | |
248 | /******************************************************************************* |
|
|
249 | * |
|
|
250 | * Start of functions dealing with freeing of the data. |
|
|
251 | * |
|
|
252 | ******************************************************************************/ |
|
|
253 | |
|
|
254 | /** Free's all the memory that ericserver allocates. */ |
|
|
255 | void |
|
|
256 | free_all_newserver (void) |
|
|
257 | { |
|
|
258 | LOG (llevDebug, "Freeing all new client/server information.\n"); |
|
|
259 | free_socket_images (); |
|
|
260 | } |
|
|
261 | |
|
|
262 | client * |
249 | client * |
263 | client::create (int fd, const char *peername) |
250 | client::create (int fd, const char *peername) |
264 | { |
251 | { |
265 | client *ns = new client (dup (fd), peername); |
252 | client *ns = new client (dup (fd), peername); |
266 | ns->instantiate (); // effectively a nop right now |
253 | ns->instantiate (); // effectively a nop right now |