aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Grid
diff options
context:
space:
mode:
authorDr Scofield2008-06-27 23:03:39 +0000
committerDr Scofield2008-06-27 23:03:39 +0000
commit748f72326d9a295958bc9ba63bbb1a5d39030ef7 (patch)
tree58f2c9a5f6b8ffab5ad3621070aa17cb1c1e3e6b /OpenSim/Grid
parentmore warnings to go. (diff)
downloadopensim-SC-748f72326d9a295958bc9ba63bbb1a5d39030ef7.zip
opensim-SC-748f72326d9a295958bc9ba63bbb1a5d39030ef7.tar.gz
opensim-SC-748f72326d9a295958bc9ba63bbb1a5d39030ef7.tar.bz2
opensim-SC-748f72326d9a295958bc9ba63bbb1a5d39030ef7.tar.xz
last round of warning squashing. calling it a day now.
Diffstat (limited to 'OpenSim/Grid')
-rw-r--r--OpenSim/Grid/AssetServer/RestService.cs10
-rw-r--r--OpenSim/Grid/MessagingServer/Main.cs2
-rw-r--r--OpenSim/Grid/MessagingServer/MessageService.cs12
-rw-r--r--OpenSim/Grid/MessagingServer/PresenceInformer.cs3
-rw-r--r--OpenSim/Grid/MessagingServer/XMPPHTTPService.cs4
-rw-r--r--OpenSim/Grid/ScriptServer/ScriptServer/Region/RegionConnectionManager.cs8
-rw-r--r--OpenSim/Grid/ScriptServer/ScriptServer/ScriptEnginesManager.cs4
-rw-r--r--OpenSim/Grid/UserServer/MessageServersConnector.cs12
-rw-r--r--OpenSim/Grid/UserServer/UserManager.cs40
9 files changed, 48 insertions, 47 deletions
diff --git a/OpenSim/Grid/AssetServer/RestService.cs b/OpenSim/Grid/AssetServer/RestService.cs
index e0e5656..98f86f1 100644
--- a/OpenSim/Grid/AssetServer/RestService.cs
+++ b/OpenSim/Grid/AssetServer/RestService.cs
@@ -44,7 +44,7 @@ namespace OpenSim.Grid.AssetServer
44 { 44 {
45 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); 45 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
46 46
47 private OpenAsset_Main m_assetManager; 47 // private OpenAsset_Main m_assetManager;
48 private IAssetProvider m_assetProvider; 48 private IAssetProvider m_assetProvider;
49 49
50 /// <summary> 50 /// <summary>
@@ -56,7 +56,7 @@ namespace OpenSim.Grid.AssetServer
56 : base("GET", "/assets") 56 : base("GET", "/assets")
57 { 57 {
58 m_log.Info("[REST]: In Get Request"); 58 m_log.Info("[REST]: In Get Request");
59 m_assetManager = assetManager; 59 // m_assetManager = assetManager;
60 m_assetProvider = assetProvider; 60 m_assetProvider = assetProvider;
61 } 61 }
62 62
@@ -120,7 +120,7 @@ namespace OpenSim.Grid.AssetServer
120 { 120 {
121 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); 121 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
122 122
123 private OpenAsset_Main m_assetManager; 123 // private OpenAsset_Main m_assetManager;
124 private IAssetProvider m_assetProvider; 124 private IAssetProvider m_assetProvider;
125 125
126 public override byte[] Handle(string path, Stream request, 126 public override byte[] Handle(string path, Stream request,
@@ -131,7 +131,7 @@ namespace OpenSim.Grid.AssetServer
131 LLUUID assetId; 131 LLUUID assetId;
132 if (param.Length > 0) 132 if (param.Length > 0)
133 LLUUID.TryParse(param, out assetId); 133 LLUUID.TryParse(param, out assetId);
134 byte[] txBuffer = new byte[4096]; 134 // byte[] txBuffer = new byte[4096];
135 135
136 XmlSerializer xs = new XmlSerializer(typeof (AssetBase)); 136 XmlSerializer xs = new XmlSerializer(typeof (AssetBase));
137 AssetBase asset = (AssetBase) xs.Deserialize(request); 137 AssetBase asset = (AssetBase) xs.Deserialize(request);
@@ -146,7 +146,7 @@ namespace OpenSim.Grid.AssetServer
146 public PostAssetStreamHandler(OpenAsset_Main assetManager, IAssetProvider assetProvider) 146 public PostAssetStreamHandler(OpenAsset_Main assetManager, IAssetProvider assetProvider)
147 : base("POST", "/assets") 147 : base("POST", "/assets")
148 { 148 {
149 m_assetManager = assetManager; 149 // m_assetManager = assetManager;
150 m_assetProvider = assetProvider; 150 m_assetProvider = assetProvider;
151 } 151 }
152 } 152 }
diff --git a/OpenSim/Grid/MessagingServer/Main.cs b/OpenSim/Grid/MessagingServer/Main.cs
index 91f2101..781b49b 100644
--- a/OpenSim/Grid/MessagingServer/Main.cs
+++ b/OpenSim/Grid/MessagingServer/Main.cs
@@ -48,7 +48,7 @@ namespace OpenSim.Grid.MessagingServer
48 private MessageServerConfig Cfg; 48 private MessageServerConfig Cfg;
49 private MessageService msgsvc; 49 private MessageService msgsvc;
50 50
51 private LLUUID m_lastCreatedUser = LLUUID.Random(); 51 // private LLUUID m_lastCreatedUser = LLUUID.Random();
52 52
53 [STAThread] 53 [STAThread]
54 public static void Main(string[] args) 54 public static void Main(string[] args)
diff --git a/OpenSim/Grid/MessagingServer/MessageService.cs b/OpenSim/Grid/MessagingServer/MessageService.cs
index cec596f..7be62b0 100644
--- a/OpenSim/Grid/MessagingServer/MessageService.cs
+++ b/OpenSim/Grid/MessagingServer/MessageService.cs
@@ -58,7 +58,7 @@ namespace OpenSim.Grid.MessagingServer
58 private Hashtable m_presence_BackReferences = new Hashtable(); 58 private Hashtable m_presence_BackReferences = new Hashtable();
59 59
60 // Hashtable containing work units that need to be processed 60 // Hashtable containing work units that need to be processed
61 private Hashtable m_unProcessedWorkUnits = new Hashtable(); 61 // private Hashtable m_unProcessedWorkUnits = new Hashtable();
62 62
63 public MessageService(MessageServerConfig cfg) 63 public MessageService(MessageServerConfig cfg)
64 { 64 {
@@ -588,9 +588,9 @@ namespace OpenSim.Grid.MessagingServer
588 uint regX = Convert.ToUInt32((string)responseData["region_locx"]); 588 uint regX = Convert.ToUInt32((string)responseData["region_locx"]);
589 uint regY = Convert.ToUInt32((string)responseData["region_locy"]); 589 uint regY = Convert.ToUInt32((string)responseData["region_locy"]);
590 string internalIpStr = (string)responseData["sim_ip"]; 590 string internalIpStr = (string)responseData["sim_ip"];
591 uint port = Convert.ToUInt32(responseData["sim_port"]); 591 // uint port = Convert.ToUInt32(responseData["sim_port"]);
592 string externalUri = (string)responseData["sim_uri"]; 592 // string externalUri = (string)responseData["sim_uri"];
593 string neighbourExternalUri = externalUri; 593 // string neighbourExternalUri = externalUri;
594 594
595 regionProfile = new RegionProfileData(); 595 regionProfile = new RegionProfileData();
596 regionProfile.httpPort = (uint)Convert.ToInt32((string)responseData["http_port"]); 596 regionProfile.httpPort = (uint)Convert.ToInt32((string)responseData["http_port"]);
@@ -655,7 +655,7 @@ namespace OpenSim.Grid.MessagingServer
655 throw(ex); 655 throw(ex);
656 } 656 }
657 Hashtable GridRespData = (Hashtable)UserResp.Value; 657 Hashtable GridRespData = (Hashtable)UserResp.Value;
658 Hashtable griddatahash = GridRespData; 658 // Hashtable griddatahash = GridRespData;
659 659
660 // Process Response 660 // Process Response
661 if (GridRespData.ContainsKey("responsestring")) 661 if (GridRespData.ContainsKey("responsestring"))
@@ -704,7 +704,7 @@ namespace OpenSim.Grid.MessagingServer
704 throw (ex); 704 throw (ex);
705 } 705 }
706 Hashtable UserRespData = (Hashtable)UserResp.Value; 706 Hashtable UserRespData = (Hashtable)UserResp.Value;
707 Hashtable userdatahash = UserRespData; 707 // Hashtable userdatahash = UserRespData;
708 708
709 // Process Response 709 // Process Response
710 if (UserRespData.ContainsKey("responsestring")) 710 if (UserRespData.ContainsKey("responsestring"))
diff --git a/OpenSim/Grid/MessagingServer/PresenceInformer.cs b/OpenSim/Grid/MessagingServer/PresenceInformer.cs
index e02aa06..39fcadb 100644
--- a/OpenSim/Grid/MessagingServer/PresenceInformer.cs
+++ b/OpenSim/Grid/MessagingServer/PresenceInformer.cs
@@ -118,7 +118,8 @@ namespace OpenSim.Grid.MessagingServer
118 try 118 try
119 { 119 {
120 120
121 XmlRpcResponse RegionResp = RegionReq.Send(whichRegion.httpServerURI, 6000); 121 // XmlRpcResponse RegionResp = RegionReq.Send(whichRegion.httpServerURI, 6000);
122 RegionReq.Send(whichRegion.httpServerURI, 6000);
122 } 123 }
123 catch (WebException) 124 catch (WebException)
124 { 125 {
diff --git a/OpenSim/Grid/MessagingServer/XMPPHTTPService.cs b/OpenSim/Grid/MessagingServer/XMPPHTTPService.cs
index efe077d..13bf290 100644
--- a/OpenSim/Grid/MessagingServer/XMPPHTTPService.cs
+++ b/OpenSim/Grid/MessagingServer/XMPPHTTPService.cs
@@ -84,7 +84,7 @@ namespace OpenSim.Grid.MessagingServer
84 84
85 public class PostXMPPStreamHandler : BaseStreamHandler 85 public class PostXMPPStreamHandler : BaseStreamHandler
86 { 86 {
87 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); 87 // private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
88 88
89 public override byte[] Handle(string path, Stream request, 89 public override byte[] Handle(string path, Stream request,
90 OSHttpRequest httpRequest, OSHttpResponse httpResponse) 90 OSHttpRequest httpRequest, OSHttpResponse httpResponse)
@@ -94,7 +94,7 @@ namespace OpenSim.Grid.MessagingServer
94 LLUUID assetId; 94 LLUUID assetId;
95 if (param.Length > 0) 95 if (param.Length > 0)
96 LLUUID.TryParse(param, out assetId); 96 LLUUID.TryParse(param, out assetId);
97 byte[] txBuffer = new byte[4096]; 97 // byte[] txBuffer = new byte[4096];
98 98
99 // TODO: Read POST serialize XMPP stanzas 99 // TODO: Read POST serialize XMPP stanzas
100 100
diff --git a/OpenSim/Grid/ScriptServer/ScriptServer/Region/RegionConnectionManager.cs b/OpenSim/Grid/ScriptServer/ScriptServer/Region/RegionConnectionManager.cs
index 8c31b9b..97be5c3 100644
--- a/OpenSim/Grid/ScriptServer/ScriptServer/Region/RegionConnectionManager.cs
+++ b/OpenSim/Grid/ScriptServer/ScriptServer/Region/RegionConnectionManager.cs
@@ -29,13 +29,13 @@ namespace OpenSim.Grid.ScriptServer.ScriptServer.Region
29{ 29{
30 public class RegionConnectionManager : RegionBase 30 public class RegionConnectionManager : RegionBase
31 { 31 {
32 private ScriptServerMain m_ScriptServerMain; 32 // private ScriptServerMain m_ScriptServerMain;
33 private object m_Connection; 33 // private object m_Connection;
34 34
35 public RegionConnectionManager(ScriptServerMain scm, object Connection) 35 public RegionConnectionManager(ScriptServerMain scm, object Connection)
36 { 36 {
37 m_ScriptServerMain = scm; 37 // m_ScriptServerMain = scm;
38 m_Connection = Connection; 38 // m_Connection = Connection;
39 } 39 }
40 } 40 }
41} \ No newline at end of file 41} \ No newline at end of file
diff --git a/OpenSim/Grid/ScriptServer/ScriptServer/ScriptEnginesManager.cs b/OpenSim/Grid/ScriptServer/ScriptServer/ScriptEnginesManager.cs
index 9d67602..37fbcfb 100644
--- a/OpenSim/Grid/ScriptServer/ScriptServer/ScriptEnginesManager.cs
+++ b/OpenSim/Grid/ScriptServer/ScriptServer/ScriptEnginesManager.cs
@@ -34,12 +34,12 @@ namespace OpenSim.Grid.ScriptServer.ScriptServer
34 { 34 {
35 private ScriptEngineLoader ScriptEngineLoader; 35 private ScriptEngineLoader ScriptEngineLoader;
36 private List<ScriptServerInterfaces.ScriptEngine> scriptEngines = new List<ScriptServerInterfaces.ScriptEngine>(); 36 private List<ScriptServerInterfaces.ScriptEngine> scriptEngines = new List<ScriptServerInterfaces.ScriptEngine>();
37 private ScriptServerMain m_ScriptServerMain; 37 // private ScriptServerMain m_ScriptServerMain;
38 38
39 // Initialize 39 // Initialize
40 public ScriptEngineManager(ScriptServerMain scm) 40 public ScriptEngineManager(ScriptServerMain scm)
41 { 41 {
42 m_ScriptServerMain = scm; 42 // m_ScriptServerMain = scm;
43 ScriptEngineLoader = new ScriptEngineLoader(); 43 ScriptEngineLoader = new ScriptEngineLoader();
44 } 44 }
45 45
diff --git a/OpenSim/Grid/UserServer/MessageServersConnector.cs b/OpenSim/Grid/UserServer/MessageServersConnector.cs
index 208131e..b3f8b19 100644
--- a/OpenSim/Grid/UserServer/MessageServersConnector.cs
+++ b/OpenSim/Grid/UserServer/MessageServersConnector.cs
@@ -140,12 +140,12 @@ namespace OpenSim.Grid.UserServer
140 140
141 if (requestData.Contains("fromuri")) 141 if (requestData.Contains("fromuri"))
142 { 142 {
143 string sURI = (string)requestData["fromuri"]; 143 // string sURI = (string)requestData["fromuri"];
144 string sagentID = (string)requestData["agentid"]; 144 // string sagentID = (string)requestData["agentid"];
145 string ssessionID = (string)requestData["sessionid"]; 145 // string ssessionID = (string)requestData["sessionid"];
146 string scurrentRegionID = (string)requestData["regionid"]; 146 // string scurrentRegionID = (string)requestData["regionid"];
147 string sregionhandle = (string)requestData["regionhandle"]; 147 // string sregionhandle = (string)requestData["regionhandle"];
148 string scurrentpos = (string)requestData["currentpos"]; 148 // string scurrentpos = (string)requestData["currentpos"];
149 //LLVector3.TryParse((string)reader["currentPos"], out retval.currentPos); 149 //LLVector3.TryParse((string)reader["currentPos"], out retval.currentPos);
150 // TODO: Okay now raise event so the user server can pass this data to the Usermanager 150 // TODO: Okay now raise event so the user server can pass this data to the Usermanager
151 151
diff --git a/OpenSim/Grid/UserServer/UserManager.cs b/OpenSim/Grid/UserServer/UserManager.cs
index 907a530..d4fb187 100644
--- a/OpenSim/Grid/UserServer/UserManager.cs
+++ b/OpenSim/Grid/UserServer/UserManager.cs
@@ -164,7 +164,7 @@ namespace OpenSim.Grid.UserServer
164 164
165 public XmlRpcResponse XmlRPCGetAvatarPickerAvatar(XmlRpcRequest request) 165 public XmlRpcResponse XmlRPCGetAvatarPickerAvatar(XmlRpcRequest request)
166 { 166 {
167 XmlRpcResponse response = new XmlRpcResponse(); 167 // XmlRpcResponse response = new XmlRpcResponse();
168 Hashtable requestData = (Hashtable) request.Params[0]; 168 Hashtable requestData = (Hashtable) request.Params[0];
169 List<AvatarPickerAvatar> returnAvatar = new List<AvatarPickerAvatar>(); 169 List<AvatarPickerAvatar> returnAvatar = new List<AvatarPickerAvatar>();
170 LLUUID queryID = new LLUUID(LLUUID.Zero.ToString()); 170 LLUUID queryID = new LLUUID(LLUUID.Zero.ToString());
@@ -188,25 +188,25 @@ namespace OpenSim.Grid.UserServer
188 188
189 if (requestData.Contains("avatar_id") && requestData.Contains("region_handle") && requestData.Contains("region_uuid")) 189 if (requestData.Contains("avatar_id") && requestData.Contains("region_handle") && requestData.Contains("region_uuid"))
190 { 190 {
191 ulong cregionhandle = 0; 191 // ulong cregionhandle = 0;
192 LLUUID regionUUID = LLUUID.Zero; 192 LLUUID regionUUID = LLUUID.Zero;
193 LLUUID AvatarID = LLUUID.Zero; 193 LLUUID AvatarID = LLUUID.Zero;
194 194
195 Helpers.TryParse((string)requestData["avatar_id"], out AvatarID); 195 Helpers.TryParse((string)requestData["avatar_id"], out AvatarID);
196 Helpers.TryParse((string)requestData["region_uuid"], out regionUUID); 196 Helpers.TryParse((string)requestData["region_uuid"], out regionUUID);
197 try 197 // try
198 { 198 // {
199 cregionhandle = (ulong)Convert.ToInt64((string)requestData["region_handle"]); 199 // cregionhandle = (ulong)Convert.ToInt64((string)requestData["region_handle"]);
200 } 200 // }
201 catch (ArgumentException) 201 // catch (ArgumentException)
202 { 202 // {
203 } 203 // }
204 catch (OverflowException) 204 // catch (OverflowException)
205 { 205 // {
206 } 206 // }
207 catch (FormatException) 207 // catch (FormatException)
208 { 208 // {
209 } 209 // }
210 210
211 if (AvatarID != LLUUID.Zero) 211 if (AvatarID != LLUUID.Zero)
212 { 212 {
@@ -285,9 +285,9 @@ namespace OpenSim.Grid.UserServer
285 285
286 public XmlRpcResponse XmlRpcResponseXmlRPCGetUserFriendList(XmlRpcRequest request) 286 public XmlRpcResponse XmlRpcResponseXmlRPCGetUserFriendList(XmlRpcRequest request)
287 { 287 {
288 XmlRpcResponse response = new XmlRpcResponse(); 288 // XmlRpcResponse response = new XmlRpcResponse();
289 Hashtable requestData = (Hashtable)request.Params[0]; 289 Hashtable requestData = (Hashtable)request.Params[0];
290 Hashtable responseData = new Hashtable(); 290 // Hashtable responseData = new Hashtable();
291 291
292 List<FriendListItem> returndata = new List<FriendListItem>(); 292 List<FriendListItem> returndata = new List<FriendListItem>();
293 293
@@ -354,14 +354,14 @@ namespace OpenSim.Grid.UserServer
354 354
355 public XmlRpcResponse XmlRPCGetUserMethodName(XmlRpcRequest request) 355 public XmlRpcResponse XmlRPCGetUserMethodName(XmlRpcRequest request)
356 { 356 {
357 XmlRpcResponse response = new XmlRpcResponse(); 357 // XmlRpcResponse response = new XmlRpcResponse();
358 Hashtable requestData = (Hashtable) request.Params[0]; 358 Hashtable requestData = (Hashtable) request.Params[0];
359 UserProfileData userProfile; 359 UserProfileData userProfile;
360 if (requestData.Contains("avatar_name")) 360 if (requestData.Contains("avatar_name"))
361 { 361 {
362 string query = (string) requestData["avatar_name"]; 362 string query = (string) requestData["avatar_name"];
363 363
364 Regex objAlphaNumericPattern = new Regex("[^a-zA-Z0-9]"); 364 // Regex objAlphaNumericPattern = new Regex("[^a-zA-Z0-9]");
365 365
366 string[] querysplit; 366 string[] querysplit;
367 querysplit = query.Split(' '); 367 querysplit = query.Split(' ');
@@ -389,7 +389,7 @@ namespace OpenSim.Grid.UserServer
389 389
390 public XmlRpcResponse XmlRPCGetUserMethodUUID(XmlRpcRequest request) 390 public XmlRpcResponse XmlRPCGetUserMethodUUID(XmlRpcRequest request)
391 { 391 {
392 XmlRpcResponse response = new XmlRpcResponse(); 392 // XmlRpcResponse response = new XmlRpcResponse();
393 Hashtable requestData = (Hashtable) request.Params[0]; 393 Hashtable requestData = (Hashtable) request.Params[0];
394 UserProfileData userProfile; 394 UserProfileData userProfile;
395 //CFK: this clogs the UserServer log and is not necessary at this time. 395 //CFK: this clogs the UserServer log and is not necessary at this time.