From 7b224677c1707b275300eb0e302c003e1185ff30 Mon Sep 17 00:00:00 2001
From: Justin Clarke Casey
Date: Fri, 24 Oct 2008 21:34:18 +0000
Subject: * Stop passing in unnecessary pameters to CreateNewCircuit
---
.../Region/ClientStack/LindenUDP/LLPacketServer.cs | 21 +++++++++------------
1 file changed, 9 insertions(+), 12 deletions(-)
(limited to 'OpenSim')
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLPacketServer.cs b/OpenSim/Region/ClientStack/LindenUDP/LLPacketServer.cs
index e3a02bc..8d9c8b2 100644
--- a/OpenSim/Region/ClientStack/LindenUDP/LLPacketServer.cs
+++ b/OpenSim/Region/ClientStack/LindenUDP/LLPacketServer.cs
@@ -76,21 +76,19 @@ namespace OpenSim.Region.ClientStack.LindenUDP
/// Create a new client circuit
///
///
- ///
- ///
///
///
///
- ///
+ ///
///
///
///
///
///
- protected virtual IClientAPI CreateNewCircuit(EndPoint remoteEP, UseCircuitCodePacket initialcirpack,
- ClientManager clientManager, IScene scene, AssetCache assetCache,
- LLPacketServer packServer, AuthenticateResponse sessionInfo,
- UUID agentId, UUID sessionId, uint circuitCode, EndPoint proxyEP)
+ protected virtual IClientAPI CreateNewCircuit(
+ EndPoint remoteEP, IScene scene, AssetCache assetCache,
+ LLPacketServer packServer, AuthenticateResponse sessionInfo,
+ UUID agentId, UUID sessionId, uint circuitCode, EndPoint proxyEP)
{
return
new LLClientView(
@@ -99,10 +97,11 @@ namespace OpenSim.Region.ClientStack.LindenUDP
}
///
- /// Check whether a given client is authorized to connect
+ /// Check whether a given client is authorized to connect.
///
///
///
+ ///
///
public virtual bool IsClientAuthorized(
UseCircuitCodePacket useCircuit, AgentCircuitManager circuitManager, out AuthenticateResponse sessionInfo)
@@ -120,7 +119,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
}
///
- /// Add a new client circuit
+ /// Add a new client circuit. We assume that is has already passed an authorization check
///
///
///
@@ -150,8 +149,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
newuser
= CreateNewCircuit(
- epSender, useCircuit, m_scene.ClientManager, m_scene, assetCache, this, sessionInfo,
- agentId, sessionId, circuitCode, proxyEP);
+ epSender, m_scene, assetCache, this, sessionInfo, agentId, sessionId, circuitCode, proxyEP);
m_scene.ClientManager.Add(circuitCode, newuser);
@@ -165,7 +163,6 @@ namespace OpenSim.Region.ClientStack.LindenUDP
public void LogoutHandler(IClientAPI client)
{
client.SendLogoutPacket();
-
CloseClient(client);
}
--
cgit v1.1