refactor: Remove IClientNetworkServer.NetworkStop() in favour of existing Stop().

This was an undocumented interface which I think was for long defunct region load balancing experiments.
Also adds method doc for some IClientNetworkServer methods.
user_profiles
Justin Clark-Casey (justincc) 2013-04-16 21:58:24 +01:00
parent 5f2cbfc0fd
commit c5de9840b0
3 changed files with 14 additions and 8 deletions

View File

@ -737,7 +737,7 @@ namespace OpenSim
if (foundClientServer) if (foundClientServer)
{ {
m_clientServers[clientServerElement].NetworkStop(); m_clientServers[clientServerElement].Stop();
m_clientServers.RemoveAt(clientServerElement); m_clientServers.RemoveAt(clientServerElement);
} }
} }

View File

@ -38,11 +38,22 @@ namespace OpenSim.Region.ClientStack
IPAddress _listenIP, ref uint port, int proxyPortOffsetParm, bool allow_alternate_port, IConfigSource configSource, IPAddress _listenIP, ref uint port, int proxyPortOffsetParm, bool allow_alternate_port, IConfigSource configSource,
AgentCircuitManager authenticateClass); AgentCircuitManager authenticateClass);
void NetworkStop();
bool HandlesRegion(Location x); bool HandlesRegion(Location x);
void AddScene(IScene x);
/// <summary>
/// Add the given scene to be handled by this IClientNetworkServer.
/// </summary>
/// <param name='scene'></param>
void AddScene(IScene scene);
/// <summary>
/// Start sending and receiving data.
/// </summary>
void Start(); void Start();
/// <summary>
/// Stop sending and receiving data.
/// </summary>
void Stop(); void Stop();
} }
} }

View File

@ -62,11 +62,6 @@ namespace OpenSim.Region.ClientStack.LindenUDP
m_udpServer = new LLUDPServer(listenIP, ref port, proxyPortOffsetParm, allow_alternate_port, configSource, circuitManager); m_udpServer = new LLUDPServer(listenIP, ref port, proxyPortOffsetParm, allow_alternate_port, configSource, circuitManager);
} }
public void NetworkStop()
{
m_udpServer.Stop();
}
public void AddScene(IScene scene) public void AddScene(IScene scene)
{ {
m_udpServer.AddScene(scene); m_udpServer.AddScene(scene);