aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/OpenSim.RegionServer/PacketServer.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/OpenSim.RegionServer/PacketServer.cs')
-rw-r--r--OpenSim/OpenSim.RegionServer/PacketServer.cs6
1 files changed, 4 insertions, 2 deletions
diff --git a/OpenSim/OpenSim.RegionServer/PacketServer.cs b/OpenSim/OpenSim.RegionServer/PacketServer.cs
index 0ab4a8d..ab77b5d 100644
--- a/OpenSim/OpenSim.RegionServer/PacketServer.cs
+++ b/OpenSim/OpenSim.RegionServer/PacketServer.cs
@@ -16,10 +16,12 @@ namespace OpenSim
16 private IWorld _localWorld; 16 private IWorld _localWorld;
17 public Dictionary<uint, ClientView> ClientThreads = new Dictionary<uint, ClientView>(); 17 public Dictionary<uint, ClientView> ClientThreads = new Dictionary<uint, ClientView>();
18 public Dictionary<uint, IClientAPI> ClientAPIs = new Dictionary<uint, IClientAPI>(); 18 public Dictionary<uint, IClientAPI> ClientAPIs = new Dictionary<uint, IClientAPI>();
19 protected uint serverPort;
19 20
20 public PacketServer(OpenSimNetworkHandler networkHandler) 21 public PacketServer(OpenSimNetworkHandler networkHandler, uint port)
21 { 22 {
22 _networkHandler = networkHandler; 23 _networkHandler = networkHandler;
24 this.serverPort = port;
23 _networkHandler.RegisterPacketServer(this); 25 _networkHandler.RegisterPacketServer(this);
24 } 26 }
25 27
@@ -66,7 +68,7 @@ namespace OpenSim
66 68
67 public virtual bool AddNewClient(EndPoint epSender, UseCircuitCodePacket useCircuit, AssetCache assetCache, InventoryCache inventoryCache, AuthenticateSessionsBase authenticateSessionsClass) 69 public virtual bool AddNewClient(EndPoint epSender, UseCircuitCodePacket useCircuit, AssetCache assetCache, InventoryCache inventoryCache, AuthenticateSessionsBase authenticateSessionsClass)
68 { 70 {
69 ClientView newuser = new ClientView(epSender, useCircuit, this.ClientThreads, this._localWorld, assetCache, this, inventoryCache, authenticateSessionsClass); 71 ClientView newuser = new ClientView(epSender, useCircuit, this.ClientThreads, this._localWorld, assetCache, this, inventoryCache, authenticateSessionsClass, serverPort);
70 this.ClientThreads.Add(useCircuit.CircuitCode.Code, newuser); 72 this.ClientThreads.Add(useCircuit.CircuitCode.Code, newuser);
71 this.ClientAPIs.Add(useCircuit.CircuitCode.Code, (IClientAPI)newuser); 73 this.ClientAPIs.Add(useCircuit.CircuitCode.Code, (IClientAPI)newuser);
72 74