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

Comparing deliantra/server/socket/init.C (file contents):
Revision 1.49 by root, Sun Jul 1 05:00:20 2007 UTC vs.
Revision 1.50 by root, Tue Jul 24 04:55:35 2007 UTC

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. */
255void
256free_all_newserver (void)
257{
258 LOG (llevDebug, "Freeing all new client/server information.\n");
259 free_socket_images ();
260}
261
262client * 249client *
263client::create (int fd, const char *peername) 250client::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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines