diff options
author | Teravus Ovares | 2007-11-18 15:54:05 +0000 |
---|---|---|
committer | Teravus Ovares | 2007-11-18 15:54:05 +0000 |
commit | 615b40b68b2311433b855f8c1e961a8b71eb9b65 (patch) | |
tree | ce9620d6f9e59e5e841f9746d738f6a71063eae4 /OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs | |
parent | cleaned up some mono compiler warnings (diff) | |
download | opensim-SC-615b40b68b2311433b855f8c1e961a8b71eb9b65.zip opensim-SC-615b40b68b2311433b855f8c1e961a8b71eb9b65.tar.gz opensim-SC-615b40b68b2311433b855f8c1e961a8b71eb9b65.tar.bz2 opensim-SC-615b40b68b2311433b855f8c1e961a8b71eb9b65.tar.xz |
* Refactored IClientAPI.OutPacket to require a second mandatory parameter. This parameter has an enum:int ThrottleOutPacketType and contains types; Resend, Land, Wind, Cloud, Task, Texture, and Asset.
Diffstat (limited to 'OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs')
-rw-r--r-- | OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs b/OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs index 507bd64..f62407d 100644 --- a/OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs +++ b/OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs | |||
@@ -635,13 +635,13 @@ namespace OpenSim.Region.ClientStack | |||
635 | 635 | ||
636 | TeleportStartPacket tpStart = new TeleportStartPacket(); | 636 | TeleportStartPacket tpStart = new TeleportStartPacket(); |
637 | tpStart.Info.TeleportFlags = 8; // tp via lm | 637 | tpStart.Info.TeleportFlags = 8; // tp via lm |
638 | OutPacket(tpStart); | 638 | OutPacket(tpStart, ThrottleOutPacketType.Task); |
639 | 639 | ||
640 | TeleportProgressPacket tpProgress = new TeleportProgressPacket(); | 640 | TeleportProgressPacket tpProgress = new TeleportProgressPacket(); |
641 | tpProgress.Info.Message = (new ASCIIEncoding()).GetBytes("sending_landmark"); | 641 | tpProgress.Info.Message = (new ASCIIEncoding()).GetBytes("sending_landmark"); |
642 | tpProgress.Info.TeleportFlags = 8; | 642 | tpProgress.Info.TeleportFlags = 8; |
643 | tpProgress.AgentData.AgentID = tpReq.Info.AgentID; | 643 | tpProgress.AgentData.AgentID = tpReq.Info.AgentID; |
644 | OutPacket(tpProgress); | 644 | OutPacket(tpProgress, ThrottleOutPacketType.Task); |
645 | 645 | ||
646 | // Fetch landmark | 646 | // Fetch landmark |
647 | LLUUID lmid = tpReq.Info.LandmarkID; | 647 | LLUUID lmid = tpReq.Info.LandmarkID; |
@@ -658,14 +658,14 @@ namespace OpenSim.Region.ClientStack | |||
658 | tpLocal.Info.TeleportFlags = 8; // Teleport via landmark | 658 | tpLocal.Info.TeleportFlags = 8; // Teleport via landmark |
659 | tpLocal.Info.LocationID = 2; | 659 | tpLocal.Info.LocationID = 2; |
660 | tpLocal.Info.Position = lm.Position; | 660 | tpLocal.Info.Position = lm.Position; |
661 | OutPacket(tpLocal); | 661 | OutPacket(tpLocal, ThrottleOutPacketType.Task); |
662 | } | 662 | } |
663 | else | 663 | else |
664 | { | 664 | { |
665 | TeleportCancelPacket tpCancel = new TeleportCancelPacket(); | 665 | TeleportCancelPacket tpCancel = new TeleportCancelPacket(); |
666 | tpCancel.Info.AgentID = tpReq.Info.AgentID; | 666 | tpCancel.Info.AgentID = tpReq.Info.AgentID; |
667 | tpCancel.Info.SessionID = tpReq.Info.SessionID; | 667 | tpCancel.Info.SessionID = tpReq.Info.SessionID; |
668 | OutPacket(tpCancel); | 668 | OutPacket(tpCancel, ThrottleOutPacketType.Task); |
669 | } | 669 | } |
670 | } | 670 | } |
671 | else | 671 | else |
@@ -675,7 +675,7 @@ namespace OpenSim.Region.ClientStack | |||
675 | TeleportCancelPacket tpCancel = new TeleportCancelPacket(); | 675 | TeleportCancelPacket tpCancel = new TeleportCancelPacket(); |
676 | tpCancel.Info.AgentID = tpReq.Info.AgentID; | 676 | tpCancel.Info.AgentID = tpReq.Info.AgentID; |
677 | tpCancel.Info.SessionID = tpReq.Info.SessionID; | 677 | tpCancel.Info.SessionID = tpReq.Info.SessionID; |
678 | OutPacket(tpCancel); | 678 | OutPacket(tpCancel, ThrottleOutPacketType.Task); |
679 | } | 679 | } |
680 | break; | 680 | break; |
681 | case PacketType.TeleportLocationRequest: | 681 | case PacketType.TeleportLocationRequest: |
@@ -693,7 +693,7 @@ namespace OpenSim.Region.ClientStack | |||
693 | TeleportCancelPacket tpCancel = new TeleportCancelPacket(); | 693 | TeleportCancelPacket tpCancel = new TeleportCancelPacket(); |
694 | tpCancel.Info.SessionID = tpLocReq.AgentData.SessionID; | 694 | tpCancel.Info.SessionID = tpLocReq.AgentData.SessionID; |
695 | tpCancel.Info.AgentID = tpLocReq.AgentData.AgentID; | 695 | tpCancel.Info.AgentID = tpLocReq.AgentData.AgentID; |
696 | OutPacket(tpCancel); | 696 | OutPacket(tpCancel, ThrottleOutPacketType.Task); |
697 | } | 697 | } |
698 | break; | 698 | break; |
699 | 699 | ||
@@ -904,7 +904,7 @@ namespace OpenSim.Region.ClientStack | |||
904 | logReply.InventoryData[0] = new LogoutReplyPacket.InventoryDataBlock(); | 904 | logReply.InventoryData[0] = new LogoutReplyPacket.InventoryDataBlock(); |
905 | logReply.InventoryData[0].ItemID = LLUUID.Zero; | 905 | logReply.InventoryData[0].ItemID = LLUUID.Zero; |
906 | 906 | ||
907 | OutPacket(logReply); | 907 | OutPacket(logReply, ThrottleOutPacketType.Task); |
908 | } | 908 | } |
909 | } | 909 | } |
910 | } | 910 | } |