aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs')
-rw-r--r--OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs12
1 files changed, 8 insertions, 4 deletions
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs b/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs
index 9792bcd..cc06a85 100644
--- a/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs
+++ b/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs
@@ -409,6 +409,13 @@ namespace OpenSim.Region.ClientStack.LindenUDP
409 SendPacket(udpClient, pc, ThrottleOutPacketType.Unknown, false); 409 SendPacket(udpClient, pc, ThrottleOutPacketType.Unknown, false);
410 } 410 }
411 411
412 public void CompletePing(LLUDPClient udpClient, byte pingID)
413 {
414 CompletePingCheckPacket completePing = new CompletePingCheckPacket();
415 completePing.PingID.PingID = pingID;
416 SendPacket(udpClient, completePing, ThrottleOutPacketType.Unknown, false);
417 }
418
412 public void ResendUnacked(LLUDPClient udpClient) 419 public void ResendUnacked(LLUDPClient udpClient)
413 { 420 {
414 if (!udpClient.IsConnected) 421 if (!udpClient.IsConnected)
@@ -669,10 +676,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
669 { 676 {
670 // We don't need to do anything else with ping checks 677 // We don't need to do anything else with ping checks
671 StartPingCheckPacket startPing = (StartPingCheckPacket)packet; 678 StartPingCheckPacket startPing = (StartPingCheckPacket)packet;
672 679 CompletePing(udpClient, startPing.PingID.PingID);
673 CompletePingCheckPacket completePing = new CompletePingCheckPacket();
674 completePing.PingID.PingID = startPing.PingID.PingID;
675 SendPacket(udpClient, completePing, ThrottleOutPacketType.Unknown, false);
676 return; 680 return;
677 } 681 }
678 else if (packet.Type == PacketType.CompletePingCheck) 682 else if (packet.Type == PacketType.CompletePingCheck)