From 40af8c256165eb6fb56f58e3c13ee9293e052f66 Mon Sep 17 00:00:00 2001 From: MW Date: Sun, 25 Mar 2007 17:34:58 +0000 Subject: You want large textures, you shall have! - Xfer system now working for large asset uploads Fixed the VS solution file. Now forwars ViewerEffect messages onto the other clients Renamed OpenSim.Framework/Inventory.cs to OpenSim.Framework/AgentInventory.cs --- OpenSim.Framework/Util.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'OpenSim.Framework/Util.cs') diff --git a/OpenSim.Framework/Util.cs b/OpenSim.Framework/Util.cs index 042360d..440ce41 100644 --- a/OpenSim.Framework/Util.cs +++ b/OpenSim.Framework/Util.cs @@ -9,6 +9,8 @@ namespace OpenSim.Framework.Utilities public class Util { private static Random randomClass = new Random(); + private static uint nextXferID = 10000; + private static object XferLock = new object(); public static ulong UIntsToLong(uint X, uint Y) { @@ -23,6 +25,17 @@ namespace OpenSim.Framework.Utilities } } + public static uint GetNextXferID() + { + uint id = 0; + lock(XferLock) + { + id = nextXferID; + nextXferID++; + } + return id; + } + public Util() { -- cgit v1.1