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.36 by pippijn, Sat Jan 20 13:47:17 2007 UTC vs.
Revision 1.37 by root, Tue Jan 23 01:05:18 2007 UTC

138 * this face. Face 0 is sent to the client to say clear 138 * this face. Face 0 is sent to the client to say clear
139 * face information. 139 * face information.
140 */ 140 */
141 faces_sent[0] = NS_FACESENT_FACE; 141 faces_sent[0] = NS_FACESENT_FACE;
142 142
143 // socket I/O is low priority
144 // we prefer to have the server run instead of handling client requests
145 socket_ev.prio (PE_PRIO_NORMAL + 1); 143 socket_ev.prio (PE_PRIO_NORMAL);
146 socket_ev.fd (fd); 144 socket_ev.fd (fd);
147 socket_ev.poll (PE_R); 145 socket_ev.poll (PE_R);
148 146
149 // command handling is even lower priority
150 // that way no client can monopolise the server
151 cmd_ev.prio (PE_PRIO_NORMAL + 2); 147 cmd_ev.prio (PE_PRIO_NORMAL);
152 148
153 // initialisation done, kick it! 149 // initialisation done, kick it!
154 send_packet_printf ("version %d %d %s\n", VERSION_CS, VERSION_SC, VERSION_INFO); 150 send_packet_printf ("version %d %d %s\n", VERSION_CS, VERSION_SC, VERSION_INFO);
155 flush (); 151 flush ();
156 152

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines