Started to cleanup/close down childagent connections when a user teleports. As the client will not close old childagent connections without being told explicitly to do so by each region the connection is to. Currently only implemented in standalone mode. ( the TellRegionToCloseChildConnection( ) in OGS1GridServices.cs needs implementing for grid mode, and the inter region .net remoting added for the new messages).

hopefully fixed the echo bug in chatmodule.
This commit is contained in:
MW
2007-11-05 13:58:44 +00:00
parent fdb57b28b1
commit 73fbacea1f
8 changed files with 129 additions and 67 deletions

View File

@@ -38,6 +38,8 @@ namespace OpenSim.Framework
public delegate void AcknowledgeAgentCross(ulong regionHandle, LLUUID agentID);
public delegate void CloseAgentConnection(ulong regionHandle, LLUUID agentID);
public interface IRegionCommsListener
{
event ExpectUserDelegate OnExpectUser;
@@ -45,5 +47,6 @@ namespace OpenSim.Framework
event AgentCrossing OnAvatarCrossingIntoRegion;
event AcknowledgeAgentCross OnAcknowledgeAgentCrossed;
event UpdateNeighbours OnNeighboursUpdate;
event CloseAgentConnection OnCloseAgentConnection;
}
}

View File

@@ -38,6 +38,7 @@ namespace OpenSim.Framework
public event AgentCrossing OnAvatarCrossingIntoRegion;
public event UpdateNeighbours OnNeighboursUpdate;
public event AcknowledgeAgentCross OnAcknowledgeAgentCrossed;
public event CloseAgentConnection OnCloseAgentConnection;
/// <summary>
///
@@ -76,6 +77,14 @@ namespace OpenSim.Framework
return false;
}
public virtual void TriggerCloseAgentConnection(ulong regionHandle, LLUUID agentID)
{
if (OnCloseAgentConnection != null)
{
OnCloseAgentConnection(regionHandle, agentID);
}
}
/// <summary>
///
/// </summary>