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

Comparing deliantra/server/socket/loop.C (file contents):
Revision 1.21 by root, Sat Dec 16 03:21:08 2006 UTC vs.
Revision 1.23 by root, Sat Dec 16 17:16:52 2006 UTC

47#include <arpa/inet.h> 47#include <arpa/inet.h>
48 48
49#include <loader.h> 49#include <loader.h>
50 50
51#define MAX_QUEUE_DEPTH 500 //TODO 51#define MAX_QUEUE_DEPTH 500 //TODO
52#define MAX_QUEUE_BACKLOG 2 //TODO 52#define MAX_QUEUE_BACKLOG 5. //TODO
53 53
54void 54void
55client::reset_state () 55client::reset_state ()
56{ 56{
57 if (!pl) 57 if (!pl)
77 reset_state (); 77 reset_state ();
78 send_packet_printf ("drawinfo %d too many commands in queue, ignoring.", NDI_RED); 78 send_packet_printf ("drawinfo %d too many commands in queue, ignoring.", NDI_RED);
79 } 79 }
80 else 80 else
81 cmd_queue.push_back (command ( 81 cmd_queue.push_back (command (
82 stamp, handler, (char *)salloc (datalen, data), datalen 82 stamp, handler, (char *)salloc (datalen + 1, data), datalen
83 )); 83 ));
84} 84}
85 85
86bool 86bool
87client::handle_command () 87client::handle_command ()

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines