From 8254256fe9eaa66c49ca981d3c8233bcc0c86eed Mon Sep 17 00:00:00 2001 From: Mikko Pallari Date: Tue, 27 Oct 2009 12:51:47 +0200 Subject: Modified visibilities of properties and methods. This is so that SL client based clients can use UDP server that is inherited from LLUDPServer. --- OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | 14 +++++++------- OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs | 10 +++++----- 2 files changed, 12 insertions(+), 12 deletions(-) (limited to 'OpenSim/Region/ClientStack') diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs index f6a7a0c..d6d1a95 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs @@ -314,14 +314,14 @@ namespace OpenSim.Region.ClientStack.LindenUDP private readonly LLUDPClient m_udpClient; private readonly UUID m_sessionId; private readonly UUID m_secureSessionId; - private readonly UUID m_agentId; + protected readonly UUID m_agentId; private readonly uint m_circuitCode; private readonly byte[] m_channelVersion = Utils.EmptyBytes; private readonly Dictionary m_defaultAnimations = new Dictionary(); private readonly IGroupsModule m_GroupsModule; private int m_cachedTextureSerial; - private PriorityQueue m_avatarTerseUpdates; + protected PriorityQueue m_avatarTerseUpdates; private PriorityQueue m_primTerseUpdates; private PriorityQueue m_primFullUpdates; private int m_moneyBalance; @@ -3314,7 +3314,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP ProcessAvatarTerseUpdates(); } - private void ProcessAvatarTerseUpdates() + protected void ProcessAvatarTerseUpdates() { ImprovedTerseObjectUpdatePacket terse = (ImprovedTerseObjectUpdatePacket)PacketPool.Instance.GetPacket(PacketType.ImprovedTerseObjectUpdate); terse.Header.Reliable = false; @@ -5050,7 +5050,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP /// /// Packet to send /// Throttling category for the packet - private void OutPacket(Packet packet, ThrottleOutPacketType throttlePacketType) + protected void OutPacket(Packet packet, ThrottleOutPacketType throttlePacketType) { m_udpServer.SendPacket(m_udpClient, packet, throttlePacketType, true); } @@ -10236,7 +10236,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP } #region PriorityQueue - private class PriorityQueue + public class PriorityQueue { internal delegate bool UpdatePriorityHandler(ref TPriority priority, uint local_id); @@ -10264,7 +10264,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP this.m_comparison = comparison; } - internal object SyncRoot { get { return this.m_syncRoot; } } + public object SyncRoot { get { return this.m_syncRoot; } } internal int Count { get @@ -10276,7 +10276,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP } } - internal bool Enqueue(TPriority priority, TValue value, uint local_id) + public bool Enqueue(TPriority priority, TValue value, uint local_id) { LookupItem item; diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs b/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs index 74d3262..dc72939 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs @@ -118,13 +118,13 @@ namespace OpenSim.Region.ClientStack.LindenUDP /// //private UDPClientCollection m_clients = new UDPClientCollection(); /// Bandwidth throttle for this UDP server - private TokenBucket m_throttle; + protected TokenBucket m_throttle; /// Bandwidth throttle rates for this UDP server - private ThrottleRates m_throttleRates; + protected ThrottleRates m_throttleRates; /// Manages authentication for agent circuits private AgentCircuitManager m_circuitManager; /// Reference to the scene this UDP server is attached to - private Scene m_scene; + protected Scene m_scene; /// The X/Y coordinates of the scene this UDP server is attached to private Location m_location; /// The size of the receive buffer for the UDP socket. This value @@ -759,7 +759,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP } } - private void AddClient(uint circuitCode, UUID agentID, UUID sessionID, IPEndPoint remoteEndPoint, AuthenticateResponse sessionInfo) + protected virtual void AddClient(uint circuitCode, UUID agentID, UUID sessionID, IPEndPoint remoteEndPoint, AuthenticateResponse sessionInfo) { // Create the LLUDPClient LLUDPClient udpClient = new LLUDPClient(this, m_throttleRates, m_throttle, circuitCode, agentID, remoteEndPoint); @@ -976,7 +976,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP } } - private void LogoutHandler(IClientAPI client) + protected void LogoutHandler(IClientAPI client) { client.SendLogoutPacket(); if (client.IsActive) -- cgit v1.1