diff options
author | MW | 2007-05-31 13:45:18 +0000 |
---|---|---|
committer | MW | 2007-05-31 13:45:18 +0000 |
commit | ee5bd67b82f2fae77477b22765ba830e29ce4fd3 (patch) | |
tree | 865f82fc245ef061b636f7da6b3e9b15ee5fb4ca /OpenSim/OpenSim.RegionServer/PacketServer.cs | |
parent | (no commit message) (diff) | |
download | opensim-SC-ee5bd67b82f2fae77477b22765ba830e29ce4fd3.zip opensim-SC-ee5bd67b82f2fae77477b22765ba830e29ce4fd3.tar.gz opensim-SC-ee5bd67b82f2fae77477b22765ba830e29ce4fd3.tar.bz2 opensim-SC-ee5bd67b82f2fae77477b22765ba830e29ce4fd3.tar.xz |
Diffstat (limited to 'OpenSim/OpenSim.RegionServer/PacketServer.cs')
-rw-r--r-- | OpenSim/OpenSim.RegionServer/PacketServer.cs | 6 |
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 | ||