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.53 by root, Thu Nov 8 19:43:29 2007 UTC vs.
Revision 1.54 by root, Wed Nov 14 08:09:46 2007 UTC

164 * face information. 164 * face information.
165 */ 165 */
166 faces_sent[0] = true; 166 faces_sent[0] = true;
167 fx_want [FT_FACE] = true; // all clients must support image faces 167 fx_want [FT_FACE] = true; // all clients must support image faces
168 168
169 socket_ev.prio (PE_PRIO_HIGH); 169 socket_ev.set (fd, EV_READ);
170 socket_ev.fd (fd); 170 socket_ev.start ();
171 socket_ev.poll (PE_R);
172 171
173 // initialisation done, kick it! 172 // initialisation done, kick it!
174 send_packet_printf ("version %d %d %s\n", VERSION_CS, VERSION_SC, VERSION_INFO); 173 send_packet_printf ("version %d %d %s\n", VERSION_CS, VERSION_SC, VERSION_INFO);
175 flush (); 174 flush ();
176 175
205 close (fd); 204 close (fd);
206 } 205 }
207 206
208 state = ST_DEAD; 207 state = ST_DEAD;
209 208
210 socket_ev.suspend (); 209 socket_ev.stop ();
211 210
212 refcnt_dec (); // socket no longer open 211 refcnt_dec (); // socket no longer open
213} 212}
214 213
215void 214void

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines