aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim.RegionServer/UDPServer.cs
diff options
context:
space:
mode:
authorMW2007-05-19 13:28:31 +0000
committerMW2007-05-19 13:28:31 +0000
commit42c45a87167a7aeb55d5c813a1b1cb8e0cc8a6dc (patch)
tree5c0e4548bb6459f260e77fdf14cfa8a442e1bf95 /OpenSim.RegionServer/UDPServer.cs
parentAdded some UI niceness (connect/disconnect thing in Grid menu) (diff)
downloadopensim-SC_OLD-42c45a87167a7aeb55d5c813a1b1cb8e0cc8a6dc.zip
opensim-SC_OLD-42c45a87167a7aeb55d5c813a1b1cb8e0cc8a6dc.tar.gz
opensim-SC_OLD-42c45a87167a7aeb55d5c813a1b1cb8e0cc8a6dc.tar.bz2
opensim-SC_OLD-42c45a87167a7aeb55d5c813a1b1cb8e0cc8a6dc.tar.xz
Added a CheckSumServer (handles template checksum , so there is no longer the need to connect to LL userserver). Currently onlt active in sandbox mode (someone simple needs to add
"CheckSumServer checkserver = new CheckSumServer(12036, m_console);" to the grid userserver). Then when starting up the SL client add " -user localhost" (or whatever the IP address that the sim or grid userserver is at) to the command line
Diffstat (limited to '')
-rw-r--r--OpenSim.RegionServer/UDPServer.cs12
1 files changed, 8 insertions, 4 deletions
diff --git a/OpenSim.RegionServer/UDPServer.cs b/OpenSim.RegionServer/UDPServer.cs
index 5c41485..0bab05a 100644
--- a/OpenSim.RegionServer/UDPServer.cs
+++ b/OpenSim.RegionServer/UDPServer.cs
@@ -72,7 +72,11 @@ namespace OpenSim
72 } 72 }
73 } 73 }
74 74
75 public UDPServer(int port, Grid gridServers, AssetCache assetCache, InventoryCache inventoryCache, RegionInfo _regionData, bool sandbox, bool accounts, ConsoleBase console , AuthenticateSessionsBase authenticateClass) 75 public UDPServer()
76 {
77 }
78
79 public UDPServer(int port, Grid gridServers, AssetCache assetCache, InventoryCache inventoryCache, RegionInfo _regionData, bool sandbox, bool accounts, ConsoleBase console, AuthenticateSessionsBase authenticateClass)
76 { 80 {
77 listenPort = port; 81 listenPort = port;
78 this.m_gridServers = gridServers; 82 this.m_gridServers = gridServers;
@@ -84,7 +88,7 @@ namespace OpenSim
84 this.m_console = console; 88 this.m_console = console;
85 this.m_authenticateSessionsClass = authenticateClass; 89 this.m_authenticateSessionsClass = authenticateClass;
86 this.CreatePacketServer(); 90 this.CreatePacketServer();
87 91
88 //set up delegate for authenticate sessions 92 //set up delegate for authenticate sessions
89 this.AuthenticateHandler = new AuthenticateSessionHandler(this.m_authenticateSessionsClass.AuthenticateSession); 93 this.AuthenticateHandler = new AuthenticateSessionHandler(this.m_authenticateSessionsClass.AuthenticateSession);
90 } 94 }
@@ -145,7 +149,7 @@ namespace OpenSim
145 ServerIncoming = new IPEndPoint(IPAddress.Any, listenPort); 149 ServerIncoming = new IPEndPoint(IPAddress.Any, listenPort);
146 Server = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp); 150 Server = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);
147 Server.Bind(ServerIncoming); 151 Server.Bind(ServerIncoming);
148 152
149 m_console.WriteLine("UDPServer.cs:ServerListener() - UDP socket bound, getting ready to listen"); 153 m_console.WriteLine("UDPServer.cs:ServerListener() - UDP socket bound, getting ready to listen");
150 154
151 ipeSender = new IPEndPoint(IPAddress.Any, 0); 155 ipeSender = new IPEndPoint(IPAddress.Any, 0);
@@ -195,7 +199,7 @@ namespace OpenSim
195 199
196 public virtual AuthenticateResponse AuthenticateSession(LLUUID sessionID, LLUUID agentID, uint circuitCode) 200 public virtual AuthenticateResponse AuthenticateSession(LLUUID sessionID, LLUUID agentID, uint circuitCode)
197 { 201 {
198 return this.AuthenticateHandler(sessionID, agentID, circuitCode); 202 return this.AuthenticateHandler(sessionID, agentID, circuitCode);
199 } 203 }
200 } 204 }
201} \ No newline at end of file 205} \ No newline at end of file