aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/General
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Framework/General')
-rw-r--r--OpenSim/Framework/General/Interfaces/IWorld.cs2
-rw-r--r--OpenSim/Framework/General/OpenSim.Framework.csproj100
-rw-r--r--OpenSim/Framework/General/OpenSim.Framework.dll.build39
-rw-r--r--OpenSim/Framework/General/Types/RegionInfo.cs127
4 files changed, 162 insertions, 106 deletions
diff --git a/OpenSim/Framework/General/Interfaces/IWorld.cs b/OpenSim/Framework/General/Interfaces/IWorld.cs
index 4857417..2edc0b4 100644
--- a/OpenSim/Framework/General/Interfaces/IWorld.cs
+++ b/OpenSim/Framework/General/Interfaces/IWorld.cs
@@ -35,7 +35,7 @@ namespace OpenSim.Framework.Interfaces
35{ 35{
36 public interface IWorld 36 public interface IWorld
37 { 37 {
38 void AddNewClient(IClientAPI remoteClient, LLUUID agentID, bool child); 38 void AddNewClient(IClientAPI client, bool child);
39 void RemoveClient(LLUUID agentID); 39 void RemoveClient(LLUUID agentID);
40 40
41 RegionInfo RegionInfo { get; } 41 RegionInfo RegionInfo { get; }
diff --git a/OpenSim/Framework/General/OpenSim.Framework.csproj b/OpenSim/Framework/General/OpenSim.Framework.csproj
index 57076a1..7d3d53a 100644
--- a/OpenSim/Framework/General/OpenSim.Framework.csproj
+++ b/OpenSim/Framework/General/OpenSim.Framework.csproj
@@ -1,4 +1,4 @@
1<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> 1<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2 <PropertyGroup> 2 <PropertyGroup>
3 <ProjectType>Local</ProjectType> 3 <ProjectType>Local</ProjectType>
4 <ProductVersion>8.0.50727</ProductVersion> 4 <ProductVersion>8.0.50727</ProductVersion>
@@ -6,8 +6,7 @@
6 <ProjectGuid>{8ACA2445-0000-0000-0000-000000000000}</ProjectGuid> 6 <ProjectGuid>{8ACA2445-0000-0000-0000-000000000000}</ProjectGuid>
7 <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> 7 <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
8 <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> 8 <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
9 <ApplicationIcon> 9 <ApplicationIcon></ApplicationIcon>
10 </ApplicationIcon>
11 <AssemblyKeyContainerName> 10 <AssemblyKeyContainerName>
12 </AssemblyKeyContainerName> 11 </AssemblyKeyContainerName>
13 <AssemblyName>OpenSim.Framework</AssemblyName> 12 <AssemblyName>OpenSim.Framework</AssemblyName>
@@ -16,11 +15,9 @@
16 <DefaultTargetSchema>IE50</DefaultTargetSchema> 15 <DefaultTargetSchema>IE50</DefaultTargetSchema>
17 <DelaySign>false</DelaySign> 16 <DelaySign>false</DelaySign>
18 <OutputType>Library</OutputType> 17 <OutputType>Library</OutputType>
19 <AppDesignerFolder> 18 <AppDesignerFolder></AppDesignerFolder>
20 </AppDesignerFolder>
21 <RootNamespace>OpenSim.Framework</RootNamespace> 19 <RootNamespace>OpenSim.Framework</RootNamespace>
22 <StartupObject> 20 <StartupObject></StartupObject>
23 </StartupObject>
24 <FileUpgradeFlags> 21 <FileUpgradeFlags>
25 </FileUpgradeFlags> 22 </FileUpgradeFlags>
26 </PropertyGroup> 23 </PropertyGroup>
@@ -31,8 +28,7 @@
31 <ConfigurationOverrideFile> 28 <ConfigurationOverrideFile>
32 </ConfigurationOverrideFile> 29 </ConfigurationOverrideFile>
33 <DefineConstants>TRACE;DEBUG</DefineConstants> 30 <DefineConstants>TRACE;DEBUG</DefineConstants>
34 <DocumentationFile> 31 <DocumentationFile></DocumentationFile>
35 </DocumentationFile>
36 <DebugSymbols>True</DebugSymbols> 32 <DebugSymbols>True</DebugSymbols>
37 <FileAlignment>4096</FileAlignment> 33 <FileAlignment>4096</FileAlignment>
38 <Optimize>False</Optimize> 34 <Optimize>False</Optimize>
@@ -41,8 +37,7 @@
41 <RemoveIntegerChecks>False</RemoveIntegerChecks> 37 <RemoveIntegerChecks>False</RemoveIntegerChecks>
42 <TreatWarningsAsErrors>False</TreatWarningsAsErrors> 38 <TreatWarningsAsErrors>False</TreatWarningsAsErrors>
43 <WarningLevel>4</WarningLevel> 39 <WarningLevel>4</WarningLevel>
44 <NoWarn> 40 <NoWarn></NoWarn>
45 </NoWarn>
46 </PropertyGroup> 41 </PropertyGroup>
47 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> 42 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
48 <AllowUnsafeBlocks>False</AllowUnsafeBlocks> 43 <AllowUnsafeBlocks>False</AllowUnsafeBlocks>
@@ -51,8 +46,7 @@
51 <ConfigurationOverrideFile> 46 <ConfigurationOverrideFile>
52 </ConfigurationOverrideFile> 47 </ConfigurationOverrideFile>
53 <DefineConstants>TRACE</DefineConstants> 48 <DefineConstants>TRACE</DefineConstants>
54 <DocumentationFile> 49 <DocumentationFile></DocumentationFile>
55 </DocumentationFile>
56 <DebugSymbols>False</DebugSymbols> 50 <DebugSymbols>False</DebugSymbols>
57 <FileAlignment>4096</FileAlignment> 51 <FileAlignment>4096</FileAlignment>
58 <Optimize>True</Optimize> 52 <Optimize>True</Optimize>
@@ -61,28 +55,26 @@
61 <RemoveIntegerChecks>False</RemoveIntegerChecks> 55 <RemoveIntegerChecks>False</RemoveIntegerChecks>
62 <TreatWarningsAsErrors>False</TreatWarningsAsErrors> 56 <TreatWarningsAsErrors>False</TreatWarningsAsErrors>
63 <WarningLevel>4</WarningLevel> 57 <WarningLevel>4</WarningLevel>
64 <NoWarn> 58 <NoWarn></NoWarn>
65 </NoWarn>
66 </PropertyGroup> 59 </PropertyGroup>
67 <ItemGroup> 60 <ItemGroup>
68 <Reference Include="Db4objects.Db4o.dll"> 61 <Reference Include="Db4objects.Db4o.dll" >
69 <HintPath>..\..\..\bin\Db4objects.Db4o.dll</HintPath> 62 <HintPath>..\..\..\bin\Db4objects.Db4o.dll</HintPath>
70 <Private>False</Private> 63 <Private>False</Private>
71 </Reference> 64 </Reference>
72 <Reference Include="libsecondlife.dll"> 65 <Reference Include="libsecondlife.dll" >
73 <HintPath>..\..\..\bin\libsecondlife.dll</HintPath> 66 <HintPath>..\..\..\bin\libsecondlife.dll</HintPath>
74 <Private>False</Private> 67 <Private>False</Private>
75 </Reference> 68 </Reference>
76 <Reference Include="System"> 69 <Reference Include="System" >
77 <HintPath>System.dll</HintPath> 70 <HintPath>System.dll</HintPath>
78 <Private>False</Private> 71 <Private>False</Private>
79 </Reference> 72 </Reference>
80 <Reference Include="System.Data" /> 73 <Reference Include="System.Xml" >
81 <Reference Include="System.Xml">
82 <HintPath>System.Xml.dll</HintPath> 74 <HintPath>System.Xml.dll</HintPath>
83 <Private>False</Private> 75 <Private>False</Private>
84 </Reference> 76 </Reference>
85 <Reference Include="XMLRPC.dll"> 77 <Reference Include="XMLRPC.dll" >
86 <HintPath>..\..\..\bin\XMLRPC.dll</HintPath> 78 <HintPath>..\..\..\bin\XMLRPC.dll</HintPath>
87 <Private>False</Private> 79 <Private>False</Private>
88 </Reference> 80 </Reference>
@@ -92,17 +84,14 @@
92 <Name>OpenSim.Framework.Console</Name> 84 <Name>OpenSim.Framework.Console</Name>
93 <Project>{A7CD0630-0000-0000-0000-000000000000}</Project> 85 <Project>{A7CD0630-0000-0000-0000-000000000000}</Project>
94 <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package> 86 <Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package>
95 <Private>False</Private> 87 <Private>False</Private>
96 </ProjectReference> 88 </ProjectReference>
97 </ItemGroup> 89 </ItemGroup>
98 <ItemGroup> 90 <ItemGroup>
99 <Compile Include="AuthenticateSessionBase.cs"> 91 <Compile Include="AgentInventory.cs">
100 <SubType>Code</SubType>
101 </Compile>
102 <Compile Include="Remoting.cs">
103 <SubType>Code</SubType> 92 <SubType>Code</SubType>
104 </Compile> 93 </Compile>
105 <Compile Include="RegionCommsListener.cs"> 94 <Compile Include="AuthenticateSessionBase.cs">
106 <SubType>Code</SubType> 95 <SubType>Code</SubType>
107 </Compile> 96 </Compile>
108 <Compile Include="BlockingQueue.cs"> 97 <Compile Include="BlockingQueue.cs">
@@ -111,92 +100,97 @@
111 <Compile Include="IRegionCommsListener.cs"> 100 <Compile Include="IRegionCommsListener.cs">
112 <SubType>Code</SubType> 101 <SubType>Code</SubType>
113 </Compile> 102 </Compile>
114 <Compile Include="Types\UUID.cs" /> 103 <Compile Include="LoginService.cs">
115 <Compile Include="Util.cs">
116 <SubType>Code</SubType> 104 <SubType>Code</SubType>
117 </Compile> 105 </Compile>
118 <Compile Include="UserProfile.cs"> 106 <Compile Include="RegionCommsListener.cs">
107 <SubType>Code</SubType>
108 </Compile>
109 <Compile Include="Remoting.cs">
119 <SubType>Code</SubType> 110 <SubType>Code</SubType>
120 </Compile> 111 </Compile>
121 <Compile Include="SimProfile.cs"> 112 <Compile Include="SimProfile.cs">
122 <SubType>Code</SubType> 113 <SubType>Code</SubType>
123 </Compile> 114 </Compile>
124 <Compile Include="LoginService.cs"> 115 <Compile Include="UserProfile.cs">
125 <SubType>Code</SubType> 116 <SubType>Code</SubType>
126 </Compile> 117 </Compile>
127 <Compile Include="AgentInventory.cs"> 118 <Compile Include="Util.cs">
128 <SubType>Code</SubType> 119 <SubType>Code</SubType>
129 </Compile> 120 </Compile>
130 <Compile Include="Interfaces\AuthenticateResponse.cs"> 121 <Compile Include="Interfaces\AuthenticateResponse.cs">
131 <SubType>Code</SubType> 122 <SubType>Code</SubType>
132 </Compile> 123 </Compile>
133 <Compile Include="Interfaces\IUserServer.cs"> 124 <Compile Include="Interfaces\IAssetServer.cs">
134 <SubType>Code</SubType> 125 <SubType>Code</SubType>
135 </Compile> 126 </Compile>
136 <Compile Include="Interfaces\IAssetServer.cs"> 127 <Compile Include="Interfaces\IClientAPI.cs">
137 <SubType>Code</SubType> 128 <SubType>Code</SubType>
138 </Compile> 129 </Compile>
139 <Compile Include="Interfaces\IWorld.cs"> 130 <Compile Include="Interfaces\ILocalStorage.cs">
140 <SubType>Code</SubType> 131 <SubType>Code</SubType>
141 </Compile> 132 </Compile>
142 <Compile Include="Interfaces\IClientAPI.cs"> 133 <Compile Include="Interfaces\IUserServer.cs">
143 <SubType>Code</SubType> 134 <SubType>Code</SubType>
144 </Compile> 135 </Compile>
145 <Compile Include="Interfaces\ILocalStorage.cs"> 136 <Compile Include="Interfaces\IWorld.cs">
146 <SubType>Code</SubType> 137 <SubType>Code</SubType>
147 </Compile> 138 </Compile>
148 <Compile Include="Interfaces\Config\IGenericConfig.cs"> 139 <Compile Include="Interfaces\Config\IGenericConfig.cs">
149 <SubType>Code</SubType> 140 <SubType>Code</SubType>
150 </Compile> 141 </Compile>
151 <Compile Include="Interfaces\Config\IUserConfig.cs"> 142 <Compile Include="Interfaces\Config\IGridConfig.cs">
152 <SubType>Code</SubType> 143 <SubType>Code</SubType>
153 </Compile> 144 </Compile>
154 <Compile Include="Interfaces\Config\IGridConfig.cs"> 145 <Compile Include="Interfaces\Config\IUserConfig.cs">
155 <SubType>Code</SubType> 146 <SubType>Code</SubType>
156 </Compile> 147 </Compile>
157 <Compile Include="Properties\AssemblyInfo.cs"> 148 <Compile Include="Properties\AssemblyInfo.cs">
158 <SubType>Code</SubType> 149 <SubType>Code</SubType>
159 </Compile> 150 </Compile>
160 <Compile Include="Types\NeighbourInfo.cs"> 151 <Compile Include="Types\AgentCiruitData.cs">
161 <SubType>Code</SubType> 152 <SubType>Code</SubType>
162 </Compile> 153 </Compile>
163 <Compile Include="Types\NetworkServersInfo.cs"> 154 <Compile Include="Types\AgentWearable.cs">
164 <SubType>Code</SubType> 155 <SubType>Code</SubType>
165 </Compile> 156 </Compile>
166 <Compile Include="Types\RegionHandle.cs"> 157 <Compile Include="Types\AssetBase.cs">
167 <SubType>Code</SubType> 158 <SubType>Code</SubType>
168 </Compile> 159 </Compile>
169 <Compile Include="Types\RegionInfo.cs"> 160 <Compile Include="Types\AssetLandmark.cs">
170 <SubType>Code</SubType> 161 <SubType>Code</SubType>
171 </Compile> 162 </Compile>
172 <Compile Include="Types\ParcelData.cs"> 163 <Compile Include="Types\AssetStorage.cs">
173 <SubType>Code</SubType> 164 <SubType>Code</SubType>
174 </Compile> 165 </Compile>
175 <Compile Include="Types\AgentWearable.cs"> 166 <Compile Include="Types\EstateSettings.cs">
176 <SubType>Code</SubType> 167 <SubType>Code</SubType>
177 </Compile> 168 </Compile>
178 <Compile Include="Types\PrimData.cs"> 169 <Compile Include="Types\Login.cs">
179 <SubType>Code</SubType> 170 <SubType>Code</SubType>
180 </Compile> 171 </Compile>
181 <Compile Include="Types\MapBlockData.cs"> 172 <Compile Include="Types\MapBlockData.cs">
182 <SubType>Code</SubType> 173 <SubType>Code</SubType>
183 </Compile> 174 </Compile>
184 <Compile Include="Types\AssetStorage.cs"> 175 <Compile Include="Types\NeighbourInfo.cs">
185 <SubType>Code</SubType> 176 <SubType>Code</SubType>
186 </Compile> 177 </Compile>
187 <Compile Include="Types\EstateSettings.cs"> 178 <Compile Include="Types\NetworkServersInfo.cs">
188 <SubType>Code</SubType> 179 <SubType>Code</SubType>
189 </Compile> 180 </Compile>
190 <Compile Include="Types\AgentCiruitData.cs"> 181 <Compile Include="Types\ParcelData.cs">
191 <SubType>Code</SubType> 182 <SubType>Code</SubType>
192 </Compile> 183 </Compile>
193 <Compile Include="Types\Login.cs"> 184 <Compile Include="Types\PrimData.cs">
194 <SubType>Code</SubType> 185 <SubType>Code</SubType>
195 </Compile> 186 </Compile>
196 <Compile Include="Types\AssetLandmark.cs"> 187 <Compile Include="Types\RegionHandle.cs">
197 <SubType>Code</SubType> 188 <SubType>Code</SubType>
198 </Compile> 189 </Compile>
199 <Compile Include="Types\AssetBase.cs"> 190 <Compile Include="Types\RegionInfo.cs">
191 <SubType>Code</SubType>
192 </Compile>
193 <Compile Include="Types\UUID.cs">
200 <SubType>Code</SubType> 194 <SubType>Code</SubType>
201 </Compile> 195 </Compile>
202 </ItemGroup> 196 </ItemGroup>
@@ -207,4 +201,4 @@
207 <PostBuildEvent> 201 <PostBuildEvent>
208 </PostBuildEvent> 202 </PostBuildEvent>
209 </PropertyGroup> 203 </PropertyGroup>
210</Project> \ No newline at end of file 204</Project>
diff --git a/OpenSim/Framework/General/OpenSim.Framework.dll.build b/OpenSim/Framework/General/OpenSim.Framework.dll.build
index 0d8077b..239e3e5 100644
--- a/OpenSim/Framework/General/OpenSim.Framework.dll.build
+++ b/OpenSim/Framework/General/OpenSim.Framework.dll.build
@@ -11,40 +11,41 @@
11 <resources prefix="OpenSim.Framework" dynamicprefix="true" > 11 <resources prefix="OpenSim.Framework" dynamicprefix="true" >
12 </resources> 12 </resources>
13 <sources failonempty="true"> 13 <sources failonempty="true">
14 <include name="AgentInventory.cs" />
14 <include name="AuthenticateSessionBase.cs" /> 15 <include name="AuthenticateSessionBase.cs" />
15 <include name="Remoting.cs" />
16 <include name="RegionCommsListener.cs" />
17 <include name="BlockingQueue.cs" /> 16 <include name="BlockingQueue.cs" />
18 <include name="IRegionCommsListener.cs" /> 17 <include name="IRegionCommsListener.cs" />
19 <include name="Util.cs" />
20 <include name="UserProfile.cs" />
21 <include name="SimProfile.cs" />
22 <include name="LoginService.cs" /> 18 <include name="LoginService.cs" />
23 <include name="AgentInventory.cs" /> 19 <include name="RegionCommsListener.cs" />
20 <include name="Remoting.cs" />
21 <include name="SimProfile.cs" />
22 <include name="UserProfile.cs" />
23 <include name="Util.cs" />
24 <include name="Interfaces/AuthenticateResponse.cs" /> 24 <include name="Interfaces/AuthenticateResponse.cs" />
25 <include name="Interfaces/IUserServer.cs" />
26 <include name="Interfaces/IAssetServer.cs" /> 25 <include name="Interfaces/IAssetServer.cs" />
27 <include name="Interfaces/IWorld.cs" />
28 <include name="Interfaces/IClientAPI.cs" /> 26 <include name="Interfaces/IClientAPI.cs" />
29 <include name="Interfaces/ILocalStorage.cs" /> 27 <include name="Interfaces/ILocalStorage.cs" />
28 <include name="Interfaces/IUserServer.cs" />
29 <include name="Interfaces/IWorld.cs" />
30 <include name="Interfaces/Config/IGenericConfig.cs" /> 30 <include name="Interfaces/Config/IGenericConfig.cs" />
31 <include name="Interfaces/Config/IUserConfig.cs" />
32 <include name="Interfaces/Config/IGridConfig.cs" /> 31 <include name="Interfaces/Config/IGridConfig.cs" />
32 <include name="Interfaces/Config/IUserConfig.cs" />
33 <include name="Properties/AssemblyInfo.cs" /> 33 <include name="Properties/AssemblyInfo.cs" />
34 <include name="Types/NeighbourInfo.cs" /> 34 <include name="Types/AgentCiruitData.cs" />
35 <include name="Types/NetworkServersInfo.cs" />
36 <include name="Types/RegionHandle.cs" />
37 <include name="Types/RegionInfo.cs" />
38 <include name="Types/ParcelData.cs" />
39 <include name="Types/AgentWearable.cs" /> 35 <include name="Types/AgentWearable.cs" />
40 <include name="Types/PrimData.cs" /> 36 <include name="Types/AssetBase.cs" />
41 <include name="Types/MapBlockData.cs" /> 37 <include name="Types/AssetLandmark.cs" />
42 <include name="Types/AssetStorage.cs" /> 38 <include name="Types/AssetStorage.cs" />
43 <include name="Types/EstateSettings.cs" /> 39 <include name="Types/EstateSettings.cs" />
44 <include name="Types/AgentCiruitData.cs" />
45 <include name="Types/Login.cs" /> 40 <include name="Types/Login.cs" />
46 <include name="Types/AssetLandmark.cs" /> 41 <include name="Types/MapBlockData.cs" />
47 <include name="Types/AssetBase.cs" /> 42 <include name="Types/NeighbourInfo.cs" />
43 <include name="Types/NetworkServersInfo.cs" />
44 <include name="Types/ParcelData.cs" />
45 <include name="Types/PrimData.cs" />
46 <include name="Types/RegionHandle.cs" />
47 <include name="Types/RegionInfo.cs" />
48 <include name="Types/UUID.cs" />
48 </sources> 49 </sources>
49 <references basedir="${project::get-base-directory()}"> 50 <references basedir="${project::get-base-directory()}">
50 <lib> 51 <lib>
diff --git a/OpenSim/Framework/General/Types/RegionInfo.cs b/OpenSim/Framework/General/Types/RegionInfo.cs
index 0fba6ca..1ead3c4 100644
--- a/OpenSim/Framework/General/Types/RegionInfo.cs
+++ b/OpenSim/Framework/General/Types/RegionInfo.cs
@@ -40,9 +40,38 @@ namespace OpenSim.Framework.Types
40 { 40 {
41 public LLUUID SimUUID = new LLUUID(); 41 public LLUUID SimUUID = new LLUUID();
42 public string RegionName = ""; 42 public string RegionName = "";
43 public uint RegionLocX = 0; 43
44 public uint RegionLocY = 0; 44 private uint? m_regionLocX;
45 public ulong RegionHandle = 0; 45 public uint RegionLocX
46 {
47 get
48 {
49 return m_regionLocX.Value;
50 }
51 }
52
53 private uint? m_regionLocY;
54 public uint RegionLocY
55 {
56 get
57 {
58 return m_regionLocY.Value;
59 }
60 }
61
62 private ulong? m_regionHandle;
63 public ulong RegionHandle
64 {
65 get
66 {
67 if (!m_regionHandle.HasValue)
68 {
69 m_regionHandle = Util.UIntsToLong((RegionLocX * 256), (RegionLocY * 256));
70 }
71
72 return m_regionHandle.Value;
73 }
74 }
46 75
47 public string DataStore = ""; 76 public string DataStore = "";
48 public bool isSandbox = false; 77 public bool isSandbox = false;
@@ -52,19 +81,43 @@ namespace OpenSim.Framework.Types
52 public string MasterAvatarLastName = ""; 81 public string MasterAvatarLastName = "";
53 public string MasterAvatarSandboxPassword = ""; 82 public string MasterAvatarSandboxPassword = "";
54 83
84 private int? m_commsIPListenPort;
85
55 /// <summary> 86 /// <summary>
56 /// Port used for listening (TCP and UDP) 87 /// Port used for listening (TCP and UDP)
57 /// </summary> 88 /// </summary>
58 /// <remarks>Seperate TCP and UDP</remarks> 89 /// <remarks>Seperate TCP and UDP</remarks>
59 public int CommsIPListenPort = 0; 90 public int CommsIPListenPort
91 {
92 get
93 {
94 return m_commsIPListenPort.Value;
95 }
96 }
97
98 private string m_commsIPListenAddr;
60 /// <summary> 99 /// <summary>
61 /// Address used for internal listening (default: 0.0.0.0?) 100 /// Address used for internal listening (default: 0.0.0.0?)
62 /// </summary> 101 /// </summary>
63 public string CommsIPListenAddr = ""; 102 public string CommsIPListenAddr
103 {
104 get
105 {
106 return m_commsIPListenAddr;
107 }
108 }
109
110 private string m_commsExternalAddress;
64 /// <summary> 111 /// <summary>
65 /// Address used for external addressing (DNS or IP) 112 /// Address used for external addressing (DNS or IP)
66 /// </summary> 113 /// </summary>
67 public string CommsExternalAddress = ""; 114 public string CommsExternalAddress
115 {
116 get
117 {
118 return m_commsExternalAddress;
119 }
120 }
68 121
69 122
70 public EstateSettings estateSettings; 123 public EstateSettings estateSettings;
@@ -73,7 +126,16 @@ namespace OpenSim.Framework.Types
73 { 126 {
74 estateSettings = new EstateSettings(); 127 estateSettings = new EstateSettings();
75 } 128 }
76 129
130 public RegionInfo( uint regionLocX, uint regionLocY, string simIp, int simPort, string simUri ) : this()
131 {
132 m_regionLocX = regionLocX;
133 m_regionLocY = regionLocY;
134
135 m_commsIPListenAddr = simIp;
136 m_commsIPListenPort = simPort;
137 m_commsExternalAddress = simUri;
138 }
77 139
78 public void InitConfig(bool sandboxMode, IGenericConfig configData) 140 public void InitConfig(bool sandboxMode, IGenericConfig configData)
79 { 141 {
@@ -112,11 +174,11 @@ namespace OpenSim.Framework.Types
112 { 174 {
113 string location = OpenSim.Framework.Console.MainLog.Instance.CmdPrompt("Grid Location X", "1000"); 175 string location = OpenSim.Framework.Console.MainLog.Instance.CmdPrompt("Grid Location X", "1000");
114 configData.SetAttribute("SimLocationX", location); 176 configData.SetAttribute("SimLocationX", location);
115 this.RegionLocX = (uint)Convert.ToUInt32(location); 177 m_regionLocX = (uint)Convert.ToUInt32(location);
116 } 178 }
117 else 179 else
118 { 180 {
119 this.RegionLocX = (uint)Convert.ToUInt32(attri); 181 m_regionLocX = (uint)Convert.ToUInt32(attri);
120 } 182 }
121 // Sim/Grid location Y 183 // Sim/Grid location Y
122 attri = ""; 184 attri = "";
@@ -125,13 +187,15 @@ namespace OpenSim.Framework.Types
125 { 187 {
126 string location = OpenSim.Framework.Console.MainLog.Instance.CmdPrompt("Grid Location Y", "1000"); 188 string location = OpenSim.Framework.Console.MainLog.Instance.CmdPrompt("Grid Location Y", "1000");
127 configData.SetAttribute("SimLocationY", location); 189 configData.SetAttribute("SimLocationY", location);
128 this.RegionLocY = (uint)Convert.ToUInt32(location); 190 m_regionLocY = (uint)Convert.ToUInt32(location);
129 } 191 }
130 else 192 else
131 { 193 {
132 this.RegionLocY = (uint)Convert.ToUInt32(attri); 194 m_regionLocY = (uint)Convert.ToUInt32(attri);
133 } 195 }
134 196
197 m_regionHandle = null;
198
135 // Local storage datastore 199 // Local storage datastore
136 attri = ""; 200 attri = "";
137 attri = configData.GetAttribute("Datastore"); 201 attri = configData.GetAttribute("Datastore");
@@ -153,11 +217,11 @@ namespace OpenSim.Framework.Types
153 { 217 {
154 string port = OpenSim.Framework.Console.MainLog.Instance.CmdPrompt("UDP port for client connections", "9000"); 218 string port = OpenSim.Framework.Console.MainLog.Instance.CmdPrompt("UDP port for client connections", "9000");
155 configData.SetAttribute("SimListenPort", port); 219 configData.SetAttribute("SimListenPort", port);
156 this.CommsIPListenPort = Convert.ToInt32(port); 220 m_commsIPListenPort = Convert.ToInt32(port);
157 } 221 }
158 else 222 else
159 { 223 {
160 this.CommsIPListenPort = Convert.ToInt32(attri); 224 m_commsIPListenPort = Convert.ToInt32(attri);
161 } 225 }
162 226
163 //Sim Listen Address 227 //Sim Listen Address
@@ -165,8 +229,8 @@ namespace OpenSim.Framework.Types
165 attri = configData.GetAttribute("SimListenAddress"); 229 attri = configData.GetAttribute("SimListenAddress");
166 if (attri == "") 230 if (attri == "")
167 { 231 {
168 this.CommsIPListenAddr = OpenSim.Framework.Console.MainLog.Instance.CmdPrompt("IP Address to listen on for client connections", "0.0.0.0"); 232 m_commsIPListenAddr = OpenSim.Framework.Console.MainLog.Instance.CmdPrompt("IP Address to listen on for client connections", "0.0.0.0");
169 configData.SetAttribute("SimListenAddress", this.CommsIPListenAddr); 233 configData.SetAttribute("SimListenAddress", CommsIPListenAddr );
170 } 234 }
171 else 235 else
172 { 236 {
@@ -177,26 +241,25 @@ namespace OpenSim.Framework.Types
177 System.Net.IPAddress[] ips = System.Net.Dns.GetHostAddresses(localhostname); 241 System.Net.IPAddress[] ips = System.Net.Dns.GetHostAddresses(localhostname);
178 try 242 try
179 { 243 {
180 this.CommsIPListenAddr = "0.0.0.0"; // Incase a IPv4 address isnt found 244 m_commsIPListenAddr = "0.0.0.0"; // Incase a IPv4 address isnt found
181 245
182 foreach (System.Net.IPAddress ip in ips) 246 foreach (System.Net.IPAddress ip in ips)
183 { 247 {
184 if (ip.AddressFamily.ToString() == System.Net.Sockets.ProtocolFamily.InterNetwork.ToString()) 248 if (ip.AddressFamily.ToString() == System.Net.Sockets.ProtocolFamily.InterNetwork.ToString())
185 { 249 {
186 this.CommsIPListenAddr = ip.ToString(); 250 m_commsIPListenAddr = ip.ToString();
187 break; 251 break;
188 } 252 }
189 } 253 }
190 } 254 }
191 catch (Exception e) 255 catch (Exception)
192 { 256 {
193 e.ToString(); 257 m_commsIPListenAddr = "0.0.0.0"; // Use the default if we fail
194 this.CommsIPListenAddr = "0.0.0.0"; // Use the default if we fail
195 } 258 }
196 } 259 }
197 else 260 else
198 { 261 {
199 this.CommsIPListenAddr = attri; 262 m_commsIPListenAddr = attri;
200 } 263 }
201 } 264 }
202 265
@@ -205,12 +268,12 @@ namespace OpenSim.Framework.Types
205 attri = configData.GetAttribute("SimExternalAddress"); 268 attri = configData.GetAttribute("SimExternalAddress");
206 if (attri == "") 269 if (attri == "")
207 { 270 {
208 this.CommsExternalAddress = OpenSim.Framework.Console.MainLog.Instance.CmdPrompt("IP or DNS address to send external clients to", "localhost"); 271 m_commsExternalAddress = OpenSim.Framework.Console.MainLog.Instance.CmdPrompt("IP or DNS address to send external clients to", "localhost");
209 configData.SetAttribute("SimExternalAddress", this.CommsExternalAddress); 272 configData.SetAttribute("SimExternalAddress", CommsExternalAddress);
210 } 273 }
211 else 274 else
212 { 275 {
213 this.CommsExternalAddress = attri; 276 m_commsExternalAddress = attri;
214 } 277 }
215 278
216 attri = ""; 279 attri = "";
@@ -281,8 +344,6 @@ namespace OpenSim.Framework.Types
281 } 344 }
282 } 345 }
283 346
284 this.RegionHandle = Util.UIntsToLong((RegionLocX * 256), (RegionLocY * 256));
285
286 configData.Commit(); 347 configData.Commit();
287 } 348 }
288 catch (Exception e) 349 catch (Exception e)
@@ -292,13 +353,13 @@ namespace OpenSim.Framework.Types
292 } 353 }
293 354
294 OpenSim.Framework.Console.MainLog.Instance.Verbose("Sim settings loaded:"); 355 OpenSim.Framework.Console.MainLog.Instance.Verbose("Sim settings loaded:");
295 OpenSim.Framework.Console.MainLog.Instance.Verbose( "UUID: " + this.SimUUID.ToStringHyphenated()); 356 OpenSim.Framework.Console.MainLog.Instance.Verbose("UUID: " + this.SimUUID.ToStringHyphenated());
296 OpenSim.Framework.Console.MainLog.Instance.Verbose( "Name: " + this.RegionName); 357 OpenSim.Framework.Console.MainLog.Instance.Verbose("Name: " + this.RegionName);
297 OpenSim.Framework.Console.MainLog.Instance.Verbose( "Region Location: [" + this.RegionLocX.ToString() + "," + this.RegionLocY + "]"); 358 OpenSim.Framework.Console.MainLog.Instance.Verbose("Region Location: [" + this.RegionLocX.ToString() + "," + this.RegionLocY + "]");
298 OpenSim.Framework.Console.MainLog.Instance.Verbose( "Region Handle: " + this.RegionHandle.ToString()); 359 OpenSim.Framework.Console.MainLog.Instance.Verbose("Region Handle: " + this.RegionHandle.ToString());
299 OpenSim.Framework.Console.MainLog.Instance.Verbose( "Listening on IP: " + this.CommsIPListenAddr + ":" + this.CommsIPListenPort); 360 OpenSim.Framework.Console.MainLog.Instance.Verbose("Listening on IP: " + this.CommsIPListenAddr + ":" + this.CommsIPListenPort);
300 OpenSim.Framework.Console.MainLog.Instance.Verbose( "Sandbox Mode? " + isSandbox.ToString()); 361 OpenSim.Framework.Console.MainLog.Instance.Verbose("Sandbox Mode? " + isSandbox.ToString());
301 362
302 } 363 }
303 } 364 }
304} 365}