diff options
author | lbsa71 | 2007-07-01 16:07:41 +0000 |
---|---|---|
committer | lbsa71 | 2007-07-01 16:07:41 +0000 |
commit | 06a8c132005b4ab804f25d54c0c0f899fc98e3a1 (patch) | |
tree | 2210d9426050c11035453631735fb1f324a070a7 /OpenSim/Region/Examples | |
parent | Fixed SimpleApp - aka thankgoditssundaycommit (diff) | |
download | opensim-SC_OLD-06a8c132005b4ab804f25d54c0c0f899fc98e3a1.zip opensim-SC_OLD-06a8c132005b4ab804f25d54c0c0f899fc98e3a1.tar.gz opensim-SC_OLD-06a8c132005b4ab804f25d54c0c0f899fc98e3a1.tar.bz2 opensim-SC_OLD-06a8c132005b4ab804f25d54c0c0f899fc98e3a1.tar.xz |
MAJOR IP RESTRUCTURING
* moving towards IPEndPoints all over the place
* trying to make the internal/external division
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Examples/SimpleApp/Program.cs | 16 |
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; | |||
15 | using OpenSim.Region.Communications.Local; | 15 | using OpenSim.Region.Communications.Local; |
16 | using OpenSim.Region.ClientStack; | 16 | using OpenSim.Region.ClientStack; |
17 | using OpenSim.Region.Physics.BasicPhysicsPlugin; | 17 | using OpenSim.Region.Physics.BasicPhysicsPlugin; |
18 | using System.Net; | ||
18 | 19 | ||
19 | namespace SimpleApp | 20 | namespace 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; |