aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim.RegionServer/UDPServer.cs
diff options
context:
space:
mode:
authorMW2007-05-19 11:55:05 +0000
committerMW2007-05-19 11:55:05 +0000
commite2499fbbc12e55a7844f761d0a98799c0335ec8c (patch)
tree2388ab1a16fef7eeae115c2f9ff529ee0d140df3 /OpenSim.RegionServer/UDPServer.cs
parentZOMG! Authentication! (diff)
downloadopensim-SC_OLD-e2499fbbc12e55a7844f761d0a98799c0335ec8c.zip
opensim-SC_OLD-e2499fbbc12e55a7844f761d0a98799c0335ec8c.tar.gz
opensim-SC_OLD-e2499fbbc12e55a7844f761d0a98799c0335ec8c.tar.bz2
opensim-SC_OLD-e2499fbbc12e55a7844f761d0a98799c0335ec8c.tar.xz
Number of small changes
Diffstat (limited to '')
-rw-r--r--OpenSim.RegionServer/UDPServer.cs47
1 files changed, 26 insertions, 21 deletions
diff --git a/OpenSim.RegionServer/UDPServer.cs b/OpenSim.RegionServer/UDPServer.cs
index b3b61c5..5c41485 100644
--- a/OpenSim.RegionServer/UDPServer.cs
+++ b/OpenSim.RegionServer/UDPServer.cs
@@ -28,26 +28,26 @@ namespace OpenSim
28 28
29 public class UDPServer : OpenSimNetworkHandler 29 public class UDPServer : OpenSimNetworkHandler
30 { 30 {
31 private Dictionary<EndPoint, uint> clientCircuits = new Dictionary<EndPoint, uint>(); 31 protected Dictionary<EndPoint, uint> clientCircuits = new Dictionary<EndPoint, uint>();
32 public Socket Server; 32 public Socket Server;
33 private IPEndPoint ServerIncoming; 33 protected IPEndPoint ServerIncoming;
34 private byte[] RecvBuffer = new byte[4096]; 34 protected byte[] RecvBuffer = new byte[4096];
35 private byte[] ZeroBuffer = new byte[8192]; 35 protected byte[] ZeroBuffer = new byte[8192];
36 private IPEndPoint ipeSender; 36 protected IPEndPoint ipeSender;
37 private EndPoint epSender; 37 protected EndPoint epSender;
38 private AsyncCallback ReceivedData; 38 protected AsyncCallback ReceivedData;
39 private PacketServer _packetServer; 39 protected PacketServer _packetServer;
40 40
41 private int listenPort; 41 protected int listenPort;
42 private Grid m_gridServers; 42 protected Grid m_gridServers;
43 private World m_localWorld; 43 protected World m_localWorld;
44 private AssetCache m_assetCache; 44 protected AssetCache m_assetCache;
45 private InventoryCache m_inventoryCache; 45 protected InventoryCache m_inventoryCache;
46 private RegionInfo m_regionData; 46 protected RegionInfo m_regionData;
47 private bool m_sandbox = false; 47 protected bool m_sandbox = false;
48 private bool user_accounts = false; 48 protected bool user_accounts = false;
49 private ConsoleBase m_console; 49 protected ConsoleBase m_console;
50 private AuthenticateSessionsBase m_authenticateSessionsClass; 50 protected AuthenticateSessionsBase m_authenticateSessionsClass;
51 51
52 public AuthenticateSessionHandler AuthenticateHandler; 52 public AuthenticateSessionHandler AuthenticateHandler;
53 53
@@ -83,12 +83,17 @@ namespace OpenSim
83 this.user_accounts = accounts; 83 this.user_accounts = accounts;
84 this.m_console = console; 84 this.m_console = console;
85 this.m_authenticateSessionsClass = authenticateClass; 85 this.m_authenticateSessionsClass = authenticateClass;
86 PacketServer packetServer = new PacketServer(this); 86 this.CreatePacketServer();
87 87
88 //set up delegate for authenticate sessions 88 //set up delegate for authenticate sessions
89 this.AuthenticateHandler = new AuthenticateSessionHandler(this.m_authenticateSessionsClass.AuthenticateSession); 89 this.AuthenticateHandler = new AuthenticateSessionHandler(this.m_authenticateSessionsClass.AuthenticateSession);
90 } 90 }
91 91
92 protected virtual void CreatePacketServer()
93 {
94 PacketServer packetServer = new PacketServer(this);
95 }
96
92 protected virtual void OnReceivedData(IAsyncResult result) 97 protected virtual void OnReceivedData(IAsyncResult result)
93 { 98 {
94 ipeSender = new IPEndPoint(IPAddress.Any, 0); 99 ipeSender = new IPEndPoint(IPAddress.Any, 0);
@@ -152,7 +157,7 @@ namespace OpenSim
152 157
153 } 158 }
154 159
155 public void RegisterPacketServer(PacketServer server) 160 public virtual void RegisterPacketServer(PacketServer server)
156 { 161 {
157 this._packetServer = server; 162 this._packetServer = server;
158 } 163 }