From 1d5b2bb8bc00b37e292236fa3d9326df84f2b76e Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Sun, 28 Sep 2008 19:45:42 +0000 Subject: Add some methods to allow modules so set client view options --- .../Region/ClientStack/LindenUDP/LLClientView.cs | 28 ++++++++++++++++++++++ .../ClientStack/LindenUDP/LLPacketHandler.cs | 1 + 2 files changed, 29 insertions(+) (limited to 'OpenSim/Region/ClientStack') diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs index 537735d..c8923e0 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs @@ -6622,6 +6622,34 @@ namespace OpenSim.Region.ClientStack.LindenUDP OutPacket(reply, ThrottleOutPacketType.Land); } + public void SetClientOption(string option, string value) + { + switch (option) + { + case "ReliableIsImportant": + bool val = false; + + if (bool.TryParse(value, out val)) + m_PacketHandler.ReliableIsImportant = val; + break; + default: + break; + } + } + + public string GetClientOption(string option) + { + switch (option) + { + case "ReliableIsImportant": + return m_PacketHandler.ReliableIsImportant.ToString(); + break; + default: + break; + } + return string.Empty; + } + public void KillEndDone() { KillPacket kp = new KillPacket(); diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLPacketHandler.cs b/OpenSim/Region/ClientStack/LindenUDP/LLPacketHandler.cs index ea397c7..d57321e 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLPacketHandler.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLPacketHandler.cs @@ -57,6 +57,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP uint SilenceLimit { get; set; } uint DiscardTimeout { get; set; } uint ResendTimeout { get; set; } + bool ReliableIsImportant { get; set; } void InPacket(Packet packet); void ProcessInPacket(LLQueItem item); -- cgit v1.1