From 4dc75e4b76e802d06faef5aa14beeced62eadcb5 Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Fri, 2 May 2008 18:18:43 +0000 Subject: * More clientstack abstractions - We now only have a single constructor call to UDPServer. Going to reduce this with an abstracted constructor in a bit. --- .../Region/ClientStack/LindenUDP/LLUDPServer.cs | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) (limited to 'OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs') diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs b/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs index f85dcc2..b5ace50 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs @@ -35,6 +35,7 @@ using log4net; using OpenSim.Framework; using OpenSim.Framework.Communications.Cache; using OpenSim.Region.ClientStack.LindenUDP; +using OpenSim.Region.Environment.Scenes; namespace OpenSim.Region.ClientStack.LindenUDP { @@ -95,6 +96,21 @@ namespace OpenSim.Region.ClientStack.LindenUDP return x == m_location; } + public void AddScene(Scene x) + { + LocalScene = x; + } + + public void Start() + { + ServerListener(); + } + + public void Stop() + { + m_socket.Close(); + } + public LLUDPServer() { } @@ -318,12 +334,6 @@ namespace OpenSim.Region.ClientStack.LindenUDP ack_it.Header.Reliable = false; SendPacketTo(ack_it.ToBytes(),ack_it.ToBytes().Length,SocketFlags.None,p.CircuitCode.Code); } - else - { - // invalid client - //CFK: This message seems to have served its usefullness as of 12-15 so I am commenting it out for now - //m_log.Warn("[UDPSERVER]: Got a packet from an invalid client - " + packet.ToString()); - } } catch (Exception) { -- cgit v1.1