[enet-cvs]CVS: enet protocol.c,1.14,1.15

Lee Salzman enet at sferik.cubik.org
Tue May 20 07:59:58 PDT 2003


Update of /home/enet/cvsroot/enet
In directory sferik:/tmp/cvs-serv25131

Modified Files:
	protocol.c 
Log Message:
Added fix for very large volumes of packets.


Index: protocol.c
===================================================================
RCS file: /home/enet/cvsroot/enet/protocol.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- protocol.c	2003/04/21 18:36:14	1.14
+++ protocol.c	2003/05/20 12:59:56	1.15
@@ -1070,6 +1070,20 @@
        if (ENET_TIME_DIFFERENCE (timeCurrent, host -> bandwidthThrottleEpoch) >= ENET_HOST_BANDWIDTH_THROTTLE_INTERVAL)
          enet_host_bandwidth_throttle (host);
 
+       switch (enet_protocol_send_outgoing_commands (host, event, 1))
+       {
+       case 1:
+          return 1;
+
+       case -1:
+          perror ("Error sending outgoing packets");
+
+          return -1;
+
+       default:
+          break;
+       }
+
        switch (enet_protocol_receive_incoming_commands (host, event))
        {
        case 1:



More information about the enet-cvs mailing list