aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Examples/SimpleApp/Program.cs
diff options
context:
space:
mode:
authorlbsa712007-07-01 16:07:41 +0000
committerlbsa712007-07-01 16:07:41 +0000
commit06a8c132005b4ab804f25d54c0c0f899fc98e3a1 (patch)
tree2210d9426050c11035453631735fb1f324a070a7 /OpenSim/Region/Examples/SimpleApp/Program.cs
parentFixed SimpleApp - aka thankgoditssundaycommit (diff)
downloadopensim-SC-06a8c132005b4ab804f25d54c0c0f899fc98e3a1.zip
opensim-SC-06a8c132005b4ab804f25d54c0c0f899fc98e3a1.tar.gz
opensim-SC-06a8c132005b4ab804f25d54c0c0f899fc98e3a1.tar.bz2
opensim-SC-06a8c132005b4ab804f25d54c0c0f899fc98e3a1.tar.xz
MAJOR IP RESTRUCTURING
* moving towards IPEndPoints all over the place * trying to make the internal/external division
Diffstat (limited to 'OpenSim/Region/Examples/SimpleApp/Program.cs')
-rw-r--r--OpenSim/Region/Examples/SimpleApp/Program.cs16
1 files changed, 8 insertions, 8 deletions
diff --git a/OpenSim/Region/Examples/SimpleApp/Program.cs b/OpenSim/Region/Examples/SimpleApp/Program.cs
index 0d5b4b3..f5c6999 100644
--- a/OpenSim/Region/Examples/SimpleApp/Program.cs
+++ b/OpenSim/Region/Examples/SimpleApp/Program.cs
@@ -15,6 +15,7 @@ using OpenSim.Framework.Communications;
15using OpenSim.Region.Communications.Local; 15using OpenSim.Region.Communications.Local;
16using OpenSim.Region.ClientStack; 16using OpenSim.Region.ClientStack;
17using OpenSim.Region.Physics.BasicPhysicsPlugin; 17using OpenSim.Region.Physics.BasicPhysicsPlugin;
18using System.Net;
18 19
19namespace SimpleApp 20namespace SimpleApp
20{ 21{
@@ -31,9 +32,8 @@ namespace SimpleApp
31 // CheckSumServer checksumServer = new CheckSumServer(12036); 32 // CheckSumServer checksumServer = new CheckSumServer(12036);
32 // checksumServer.ServerListener(); 33 // checksumServer.ServerListener();
33 34
34 string simAddr = "127.0.0.1"; 35 IPEndPoint internalEndPoint = new IPEndPoint( IPAddress.Parse( "127.0.0.1" ), 9000 );
35 int simPort = 9000; 36
36
37 m_circuitManager = new AuthenticateSessionsBase(); 37 m_circuitManager = new AuthenticateSessionsBase();
38 38
39 InventoryCache inventoryCache = new InventoryCache(); 39 InventoryCache inventoryCache = new InventoryCache();
@@ -44,8 +44,8 @@ namespace SimpleApp
44 44
45 AssetCache assetCache = new AssetCache(assetServer); 45 AssetCache assetCache = new AssetCache(assetServer);
46 46
47 UDPServer udpServer = new UDPServer(simPort, assetCache, inventoryCache, m_log, m_circuitManager ); 47 UDPServer udpServer = new UDPServer( internalEndPoint.Port, assetCache, inventoryCache, m_log, m_circuitManager );
48 PacketServer packetServer = new PacketServer( udpServer, (uint) simPort ); 48 PacketServer packetServer = new PacketServer(udpServer);
49 udpServer.ServerListener(); 49 udpServer.ServerListener();
50 50
51 ClientView.TerrainManager = new TerrainManager(new SecondLife()); 51 ClientView.TerrainManager = new TerrainManager(new SecondLife());
@@ -53,9 +53,9 @@ namespace SimpleApp
53 NetworkServersInfo serverInfo = new NetworkServersInfo(); 53 NetworkServersInfo serverInfo = new NetworkServersInfo();
54 CommunicationsLocal communicationsManager = new CommunicationsLocal(serverInfo); 54 CommunicationsLocal communicationsManager = new CommunicationsLocal(serverInfo);
55 55
56 RegionInfo regionInfo = new RegionInfo( 1000, 1000, simAddr, simPort, simAddr ); 56 RegionInfo regionInfo = new RegionInfo( 1000, 1000, internalEndPoint, "localhost" );
57 57
58 BaseHttpServer httpServer = new BaseHttpServer(simPort); 58 BaseHttpServer httpServer = new BaseHttpServer( internalEndPoint.Port );
59 MyWorld world = new MyWorld(packetServer.ClientAPIs, regionInfo, m_circuitManager, communicationsManager, assetCache, httpServer); 59 MyWorld world = new MyWorld(packetServer.ClientAPIs, regionInfo, m_circuitManager, communicationsManager, assetCache, httpServer);
60 world.PhysScene = new BasicScene(); 60 world.PhysScene = new BasicScene();
61 udpServer.LocalWorld = world; 61 udpServer.LocalWorld = world;