mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
This commit is contained in:
@@ -78,10 +78,11 @@ namespace OpenSim
|
||||
private int cachedtextureserial = 0;
|
||||
private RegionInfo m_regionData;
|
||||
protected AuthenticateSessionsBase m_authenticateSessionsHandler;
|
||||
protected uint serverPort = 0;
|
||||
|
||||
|
||||
public ClientView(EndPoint remoteEP, UseCircuitCodePacket initialcirpack, Dictionary<uint, ClientView> clientThreads, IWorld world, AssetCache assetCache, PacketServer packServer, InventoryCache inventoryCache, AuthenticateSessionsBase authenSessions)
|
||||
public ClientView(EndPoint remoteEP, UseCircuitCodePacket initialcirpack, Dictionary<uint, ClientView> clientThreads, IWorld world, AssetCache assetCache, PacketServer packServer, InventoryCache inventoryCache, AuthenticateSessionsBase authenSessions, uint port)
|
||||
{
|
||||
this.serverPort = port;
|
||||
m_world = world;
|
||||
m_clientThreads = clientThreads;
|
||||
m_assetCache = assetCache;
|
||||
|
||||
@@ -16,10 +16,12 @@ namespace OpenSim
|
||||
private IWorld _localWorld;
|
||||
public Dictionary<uint, ClientView> ClientThreads = new Dictionary<uint, ClientView>();
|
||||
public Dictionary<uint, IClientAPI> ClientAPIs = new Dictionary<uint, IClientAPI>();
|
||||
protected uint serverPort;
|
||||
|
||||
public PacketServer(OpenSimNetworkHandler networkHandler)
|
||||
public PacketServer(OpenSimNetworkHandler networkHandler, uint port)
|
||||
{
|
||||
_networkHandler = networkHandler;
|
||||
this.serverPort = port;
|
||||
_networkHandler.RegisterPacketServer(this);
|
||||
}
|
||||
|
||||
@@ -66,7 +68,7 @@ namespace OpenSim
|
||||
|
||||
public virtual bool AddNewClient(EndPoint epSender, UseCircuitCodePacket useCircuit, AssetCache assetCache, InventoryCache inventoryCache, AuthenticateSessionsBase authenticateSessionsClass)
|
||||
{
|
||||
ClientView newuser = new ClientView(epSender, useCircuit, this.ClientThreads, this._localWorld, assetCache, this, inventoryCache, authenticateSessionsClass);
|
||||
ClientView newuser = new ClientView(epSender, useCircuit, this.ClientThreads, this._localWorld, assetCache, this, inventoryCache, authenticateSessionsClass, serverPort);
|
||||
this.ClientThreads.Add(useCircuit.CircuitCode.Code, newuser);
|
||||
this.ClientAPIs.Add(useCircuit.CircuitCode.Code, (IClientAPI)newuser);
|
||||
|
||||
|
||||
@@ -82,7 +82,7 @@ namespace OpenSim
|
||||
|
||||
protected virtual void CreatePacketServer()
|
||||
{
|
||||
PacketServer packetServer = new PacketServer(this);
|
||||
PacketServer packetServer = new PacketServer(this, (uint) listenPort);
|
||||
}
|
||||
|
||||
protected virtual void OnReceivedData(IAsyncResult result)
|
||||
|
||||
Reference in New Issue
Block a user