aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Communications
diff options
context:
space:
mode:
authorlbsa712007-07-01 13:17:27 +0000
committerlbsa712007-07-01 13:17:27 +0000
commit5e805656db1215518a344d6d5364629a4997fd47 (patch)
tree2d8b50bac8e77f983e3016e969df3535c52fb0d3 /OpenSim/Region/Communications
parent* Project files fixed for OGS. (diff)
downloadopensim-SC-5e805656db1215518a344d6d5364629a4997fd47.zip
opensim-SC-5e805656db1215518a344d6d5364629a4997fd47.tar.gz
opensim-SC-5e805656db1215518a344d6d5364629a4997fd47.tar.bz2
opensim-SC-5e805656db1215518a344d6d5364629a4997fd47.tar.xz
Fixed SimpleApp - aka thankgoditssundaycommit
* Updated SimpleApp with various introduced dependencies * Extracted ScenePrescence creation in Scene * removed try-catchall from UserManagerBase (that actually hid a bug) * Refactored RegionInfo * handle is calculated * it will explode upon accessing x,y,ip,port,externalip if not explicitly initialized * Removed superfluous 'ref' keywords * Removed a shitload of 'catch Exception e' that causes build warnings * Lots of small refactorings, renames et c * Ignored some bins
Diffstat (limited to 'OpenSim/Region/Communications')
-rw-r--r--OpenSim/Region/Communications/Local/LocalUserServices.cs4
-rw-r--r--OpenSim/Region/Communications/Local/OpenSim.Region.Communications.Local.csproj6
-rw-r--r--OpenSim/Region/Communications/Local/OpenSim.Region.Communications.Local.dll.build2
-rw-r--r--OpenSim/Region/Communications/OGS1/OGS1GridServices.cs10
-rw-r--r--OpenSim/Region/Communications/OGS1/OpenSim.Region.Communications.OGS1.csproj6
-rw-r--r--OpenSim/Region/Communications/OGS1/OpenSim.Region.Communications.OGS1.dll.build2
6 files changed, 13 insertions, 17 deletions
diff --git a/OpenSim/Region/Communications/Local/LocalUserServices.cs b/OpenSim/Region/Communications/Local/LocalUserServices.cs
index 6cf254b..5a2a5c8 100644
--- a/OpenSim/Region/Communications/Local/LocalUserServices.cs
+++ b/OpenSim/Region/Communications/Local/LocalUserServices.cs
@@ -69,14 +69,14 @@ namespace OpenSim.Region.Communications.Local
69 return profile; 69 return profile;
70 } 70 }
71 71
72 public override bool AuthenticateUser(ref UserProfileData profile, string password) 72 public override bool AuthenticateUser(UserProfileData profile, string password)
73 { 73 {
74 //for now we will accept any password in sandbox mode 74 //for now we will accept any password in sandbox mode
75 Console.WriteLine("authorising user"); 75 Console.WriteLine("authorising user");
76 return true; 76 return true;
77 } 77 }
78 78
79 public override void CustomiseResponse(ref LoginResponse response, ref UserProfileData theUser) 79 public override void CustomiseResponse(LoginResponse response, UserProfileData theUser)
80 { 80 {
81 ulong currentRegion = theUser.currentAgent.currentHandle; 81 ulong currentRegion = theUser.currentAgent.currentHandle;
82 RegionInfo reg = m_Parent.GridServer.RequestNeighbourInfo(currentRegion); 82 RegionInfo reg = m_Parent.GridServer.RequestNeighbourInfo(currentRegion);
diff --git a/OpenSim/Region/Communications/Local/OpenSim.Region.Communications.Local.csproj b/OpenSim/Region/Communications/Local/OpenSim.Region.Communications.Local.csproj
index f9f6b7d..0a15a49 100644
--- a/OpenSim/Region/Communications/Local/OpenSim.Region.Communications.Local.csproj
+++ b/OpenSim/Region/Communications/Local/OpenSim.Region.Communications.Local.csproj
@@ -98,15 +98,15 @@
98 </ProjectReference> 98 </ProjectReference>
99 </ItemGroup> 99 </ItemGroup>
100 <ItemGroup> 100 <ItemGroup>
101 <Compile Include="LocalUserServices.cs">
102 <SubType>Code</SubType>
103 </Compile>
104 <Compile Include="CommunicationsLocal.cs"> 101 <Compile Include="CommunicationsLocal.cs">
105 <SubType>Code</SubType> 102 <SubType>Code</SubType>
106 </Compile> 103 </Compile>
107 <Compile Include="LocalBackEndServices.cs"> 104 <Compile Include="LocalBackEndServices.cs">
108 <SubType>Code</SubType> 105 <SubType>Code</SubType>
109 </Compile> 106 </Compile>
107 <Compile Include="LocalUserServices.cs">
108 <SubType>Code</SubType>
109 </Compile>
110 <Compile Include="Properties\AssemblyInfo.cs"> 110 <Compile Include="Properties\AssemblyInfo.cs">
111 <SubType>Code</SubType> 111 <SubType>Code</SubType>
112 </Compile> 112 </Compile>
diff --git a/OpenSim/Region/Communications/Local/OpenSim.Region.Communications.Local.dll.build b/OpenSim/Region/Communications/Local/OpenSim.Region.Communications.Local.dll.build
index bfefabf..3cac9d3 100644
--- a/OpenSim/Region/Communications/Local/OpenSim.Region.Communications.Local.dll.build
+++ b/OpenSim/Region/Communications/Local/OpenSim.Region.Communications.Local.dll.build
@@ -11,9 +11,9 @@
11 <resources prefix="OpenSim.Region.Communications.Local" dynamicprefix="true" > 11 <resources prefix="OpenSim.Region.Communications.Local" dynamicprefix="true" >
12 </resources> 12 </resources>
13 <sources failonempty="true"> 13 <sources failonempty="true">
14 <include name="LocalUserServices.cs" />
15 <include name="CommunicationsLocal.cs" /> 14 <include name="CommunicationsLocal.cs" />
16 <include name="LocalBackEndServices.cs" /> 15 <include name="LocalBackEndServices.cs" />
16 <include name="LocalUserServices.cs" />
17 <include name="Properties/AssemblyInfo.cs" /> 17 <include name="Properties/AssemblyInfo.cs" />
18 </sources> 18 </sources>
19 <references basedir="${project::get-base-directory()}"> 19 <references basedir="${project::get-base-directory()}">
diff --git a/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs b/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs
index 5f0c80c..2ac7297 100644
--- a/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs
+++ b/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs
@@ -75,18 +75,14 @@ namespace OpenSim.Region.Communications.OGS1
75 75
76 foreach (Hashtable n in (Hashtable)respData.Values) 76 foreach (Hashtable n in (Hashtable)respData.Values)
77 { 77 {
78 RegionInfo neighbour = new RegionInfo(); 78 RegionInfo neighbour = new RegionInfo( (uint)n["x"], (uint)n["y"], (string)n["sim_ip"], (int)n["sim_port"], (string)n["sim_uri"] );
79 79
80 //OGS1 80 //OGS1
81 neighbour.RegionHandle = (ulong)n["regionhandle"]; 81 //neighbour.RegionHandle = (ulong)n["regionhandle"]; is now calculated locally
82 neighbour.RegionLocX = (uint)n["x"]; 82
83 neighbour.RegionLocY = (uint)n["y"];
84 neighbour.RegionName = (string)n["name"]; 83 neighbour.RegionName = (string)n["name"];
85 84
86 //OGS1+ 85 //OGS1+
87 neighbour.CommsIPListenAddr = (string)n["sim_ip"];
88 neighbour.CommsIPListenPort = (int)n["sim_port"];
89 neighbour.CommsExternalAddress = (string)n["sim_uri"];
90 neighbour.SimUUID = (string)n["uuid"]; 86 neighbour.SimUUID = (string)n["uuid"];
91 87
92 neighbours.Add(neighbour); 88 neighbours.Add(neighbour);
diff --git a/OpenSim/Region/Communications/OGS1/OpenSim.Region.Communications.OGS1.csproj b/OpenSim/Region/Communications/OGS1/OpenSim.Region.Communications.OGS1.csproj
index 90a01b6..d6abd13 100644
--- a/OpenSim/Region/Communications/OGS1/OpenSim.Region.Communications.OGS1.csproj
+++ b/OpenSim/Region/Communications/OGS1/OpenSim.Region.Communications.OGS1.csproj
@@ -116,9 +116,6 @@
116 </ProjectReference> 116 </ProjectReference>
117 </ItemGroup> 117 </ItemGroup>
118 <ItemGroup> 118 <ItemGroup>
119 <Compile Include="OGS1UserServices.cs">
120 <SubType>Code</SubType>
121 </Compile>
122 <Compile Include="CommunicationsOGS1.cs"> 119 <Compile Include="CommunicationsOGS1.cs">
123 <SubType>Code</SubType> 120 <SubType>Code</SubType>
124 </Compile> 121 </Compile>
@@ -128,6 +125,9 @@
128 <Compile Include="OGS1InterSimComms.cs"> 125 <Compile Include="OGS1InterSimComms.cs">
129 <SubType>Code</SubType> 126 <SubType>Code</SubType>
130 </Compile> 127 </Compile>
128 <Compile Include="OGS1UserServices.cs">
129 <SubType>Code</SubType>
130 </Compile>
131 <Compile Include="Properties\AssemblyInfo.cs"> 131 <Compile Include="Properties\AssemblyInfo.cs">
132 <SubType>Code</SubType> 132 <SubType>Code</SubType>
133 </Compile> 133 </Compile>
diff --git a/OpenSim/Region/Communications/OGS1/OpenSim.Region.Communications.OGS1.dll.build b/OpenSim/Region/Communications/OGS1/OpenSim.Region.Communications.OGS1.dll.build
index 960a84a..04d61b9 100644
--- a/OpenSim/Region/Communications/OGS1/OpenSim.Region.Communications.OGS1.dll.build
+++ b/OpenSim/Region/Communications/OGS1/OpenSim.Region.Communications.OGS1.dll.build
@@ -11,10 +11,10 @@
11 <resources prefix="OpenSim.Region.Communications.OGS1" dynamicprefix="true" > 11 <resources prefix="OpenSim.Region.Communications.OGS1" dynamicprefix="true" >
12 </resources> 12 </resources>
13 <sources failonempty="true"> 13 <sources failonempty="true">
14 <include name="OGS1UserServices.cs" />
15 <include name="CommunicationsOGS1.cs" /> 14 <include name="CommunicationsOGS1.cs" />
16 <include name="OGS1GridServices.cs" /> 15 <include name="OGS1GridServices.cs" />
17 <include name="OGS1InterSimComms.cs" /> 16 <include name="OGS1InterSimComms.cs" />
17 <include name="OGS1UserServices.cs" />
18 <include name="Properties/AssemblyInfo.cs" /> 18 <include name="Properties/AssemblyInfo.cs" />
19 </sources> 19 </sources>
20 <references basedir="${project::get-base-directory()}"> 20 <references basedir="${project::get-base-directory()}">