diff options
author | Adam Frisby | 2009-05-23 06:05:20 +0000 |
---|---|---|
committer | Adam Frisby | 2009-05-23 06:05:20 +0000 |
commit | 31baeef469d72a9dc13cf4f56392b9f740f71cba (patch) | |
tree | ac50806ced72c5b296645bf061a3d9176a41075c /OpenSim/Grid | |
parent | * Breaks OpenSim.. err I mean.. adds NAT translation support to EnableSimulat... (diff) | |
download | opensim-SC_OLD-31baeef469d72a9dc13cf4f56392b9f740f71cba.zip opensim-SC_OLD-31baeef469d72a9dc13cf4f56392b9f740f71cba.tar.gz opensim-SC_OLD-31baeef469d72a9dc13cf4f56392b9f740f71cba.tar.bz2 opensim-SC_OLD-31baeef469d72a9dc13cf4f56392b9f740f71cba.tar.xz |
* Pipes requestors IP address through all XmlRpcRequest delegates. This is needed to be able to 'NAT-wrap' the login sequence.
* If you have something using XmlRpc that isn't in core, change your method signature from:
(XmlRpcRequest request)
to:
(XmlRpcRequest request, IPEndPoint remoteClient)
Diffstat (limited to 'OpenSim/Grid')
9 files changed, 42 insertions, 36 deletions
diff --git a/OpenSim/Grid/GridServer.Modules/GridMessagingModule.cs b/OpenSim/Grid/GridServer.Modules/GridMessagingModule.cs index 2f08756..eaf5b86 100644 --- a/OpenSim/Grid/GridServer.Modules/GridMessagingModule.cs +++ b/OpenSim/Grid/GridServer.Modules/GridMessagingModule.cs | |||
@@ -28,6 +28,7 @@ | |||
28 | using System; | 28 | using System; |
29 | using System.Collections; | 29 | using System.Collections; |
30 | using System.Collections.Generic; | 30 | using System.Collections.Generic; |
31 | using System.Net; | ||
31 | using System.Reflection; | 32 | using System.Reflection; |
32 | using System.Text; | 33 | using System.Text; |
33 | using Nwc.XmlRpc; | 34 | using Nwc.XmlRpc; |
@@ -98,7 +99,7 @@ namespace OpenSim.Grid.GridServer.Modules | |||
98 | } | 99 | } |
99 | } | 100 | } |
100 | 101 | ||
101 | public XmlRpcResponse XmlRPCRegisterMessageServer(XmlRpcRequest request) | 102 | public XmlRpcResponse XmlRPCRegisterMessageServer(XmlRpcRequest request, IPEndPoint remoteClient) |
102 | { | 103 | { |
103 | XmlRpcResponse response = new XmlRpcResponse(); | 104 | XmlRpcResponse response = new XmlRpcResponse(); |
104 | Hashtable requestData = (Hashtable)request.Params[0]; | 105 | Hashtable requestData = (Hashtable)request.Params[0]; |
@@ -120,7 +121,7 @@ namespace OpenSim.Grid.GridServer.Modules | |||
120 | return response; | 121 | return response; |
121 | } | 122 | } |
122 | 123 | ||
123 | public XmlRpcResponse XmlRPCDeRegisterMessageServer(XmlRpcRequest request) | 124 | public XmlRpcResponse XmlRPCDeRegisterMessageServer(XmlRpcRequest request, IPEndPoint remoteClient) |
124 | { | 125 | { |
125 | XmlRpcResponse response = new XmlRpcResponse(); | 126 | XmlRpcResponse response = new XmlRpcResponse(); |
126 | Hashtable requestData = (Hashtable)request.Params[0]; | 127 | Hashtable requestData = (Hashtable)request.Params[0]; |
diff --git a/OpenSim/Grid/GridServer.Modules/GridXmlRpcModule.cs b/OpenSim/Grid/GridServer.Modules/GridXmlRpcModule.cs index 14a328f..59fadce 100644 --- a/OpenSim/Grid/GridServer.Modules/GridXmlRpcModule.cs +++ b/OpenSim/Grid/GridServer.Modules/GridXmlRpcModule.cs | |||
@@ -29,6 +29,7 @@ using System; | |||
29 | using System.Collections; | 29 | using System.Collections; |
30 | using System.Collections.Generic; | 30 | using System.Collections.Generic; |
31 | using System.IO; | 31 | using System.IO; |
32 | using System.Net; | ||
32 | using System.Reflection; | 33 | using System.Reflection; |
33 | using System.Xml; | 34 | using System.Xml; |
34 | using log4net; | 35 | using log4net; |
@@ -246,7 +247,7 @@ namespace OpenSim.Grid.GridServer.Modules | |||
246 | /// </summary> | 247 | /// </summary> |
247 | /// <param name="request">The XML RPC Request</param> | 248 | /// <param name="request">The XML RPC Request</param> |
248 | /// <returns>Startup parameters</returns> | 249 | /// <returns>Startup parameters</returns> |
249 | public XmlRpcResponse XmlRpcSimulatorLoginMethod(XmlRpcRequest request) | 250 | public XmlRpcResponse XmlRpcSimulatorLoginMethod(XmlRpcRequest request, IPEndPoint remoteClient) |
250 | { | 251 | { |
251 | RegionProfileData sim; | 252 | RegionProfileData sim; |
252 | RegionProfileData existingSim; | 253 | RegionProfileData existingSim; |
@@ -575,7 +576,7 @@ namespace OpenSim.Grid.GridServer.Modules | |||
575 | /// <returns></returns> | 576 | /// <returns></returns> |
576 | /// <param name="request">The XMLRPC Request</param> | 577 | /// <param name="request">The XMLRPC Request</param> |
577 | /// <returns>Processing parameters</returns> | 578 | /// <returns>Processing parameters</returns> |
578 | public XmlRpcResponse XmlRpcDeleteRegionMethod(XmlRpcRequest request) | 579 | public XmlRpcResponse XmlRpcDeleteRegionMethod(XmlRpcRequest request, IPEndPoint remoteClient) |
579 | { | 580 | { |
580 | XmlRpcResponse response = new XmlRpcResponse(); | 581 | XmlRpcResponse response = new XmlRpcResponse(); |
581 | Hashtable responseData = new Hashtable(); | 582 | Hashtable responseData = new Hashtable(); |
@@ -631,7 +632,7 @@ namespace OpenSim.Grid.GridServer.Modules | |||
631 | /// </summary> | 632 | /// </summary> |
632 | /// <param name="request"></param> | 633 | /// <param name="request"></param> |
633 | /// <returns></returns> | 634 | /// <returns></returns> |
634 | public XmlRpcResponse XmlRpcSimulatorDataRequestMethod(XmlRpcRequest request) | 635 | public XmlRpcResponse XmlRpcSimulatorDataRequestMethod(XmlRpcRequest request, IPEndPoint remoteClient) |
635 | { | 636 | { |
636 | Hashtable requestData = (Hashtable)request.Params[0]; | 637 | Hashtable requestData = (Hashtable)request.Params[0]; |
637 | Hashtable responseData = new Hashtable(); | 638 | Hashtable responseData = new Hashtable(); |
@@ -696,7 +697,7 @@ namespace OpenSim.Grid.GridServer.Modules | |||
696 | return response; | 697 | return response; |
697 | } | 698 | } |
698 | 699 | ||
699 | public XmlRpcResponse XmlRpcMapBlockMethod(XmlRpcRequest request) | 700 | public XmlRpcResponse XmlRpcMapBlockMethod(XmlRpcRequest request, IPEndPoint remoteClient) |
700 | { | 701 | { |
701 | int xmin = 980, ymin = 980, xmax = 1020, ymax = 1020; | 702 | int xmin = 980, ymin = 980, xmax = 1020, ymax = 1020; |
702 | 703 | ||
@@ -806,7 +807,7 @@ namespace OpenSim.Grid.GridServer.Modules | |||
806 | /// </summary> | 807 | /// </summary> |
807 | /// <param name="request"></param> | 808 | /// <param name="request"></param> |
808 | /// <returns></returns> | 809 | /// <returns></returns> |
809 | public XmlRpcResponse XmlRpcSearchForRegionMethod(XmlRpcRequest request) | 810 | public XmlRpcResponse XmlRpcSearchForRegionMethod(XmlRpcRequest request, IPEndPoint remoteClient) |
810 | { | 811 | { |
811 | Hashtable requestData = (Hashtable)request.Params[0]; | 812 | Hashtable requestData = (Hashtable)request.Params[0]; |
812 | 813 | ||
diff --git a/OpenSim/Grid/MessagingServer.Modules/MessageRegionModule.cs b/OpenSim/Grid/MessagingServer.Modules/MessageRegionModule.cs index f7ef759..f158591 100644 --- a/OpenSim/Grid/MessagingServer.Modules/MessageRegionModule.cs +++ b/OpenSim/Grid/MessagingServer.Modules/MessageRegionModule.cs | |||
@@ -181,7 +181,7 @@ namespace OpenSim.Grid.MessagingServer.Modules | |||
181 | return regionProfile; | 181 | return regionProfile; |
182 | } | 182 | } |
183 | 183 | ||
184 | public XmlRpcResponse RegionStartup(XmlRpcRequest request) | 184 | public XmlRpcResponse RegionStartup(XmlRpcRequest request, IPEndPoint remoteClient) |
185 | { | 185 | { |
186 | Hashtable requestData = (Hashtable)request.Params[0]; | 186 | Hashtable requestData = (Hashtable)request.Params[0]; |
187 | Hashtable result = new Hashtable(); | 187 | Hashtable result = new Hashtable(); |
@@ -195,7 +195,7 @@ namespace OpenSim.Grid.MessagingServer.Modules | |||
195 | return response; | 195 | return response; |
196 | } | 196 | } |
197 | 197 | ||
198 | public XmlRpcResponse RegionShutdown(XmlRpcRequest request) | 198 | public XmlRpcResponse RegionShutdown(XmlRpcRequest request, IPEndPoint remoteClient) |
199 | { | 199 | { |
200 | Hashtable requestData = (Hashtable)request.Params[0]; | 200 | Hashtable requestData = (Hashtable)request.Params[0]; |
201 | Hashtable result = new Hashtable(); | 201 | Hashtable result = new Hashtable(); |
diff --git a/OpenSim/Grid/MessagingServer.Modules/MessageService.cs b/OpenSim/Grid/MessagingServer.Modules/MessageService.cs index bff17df..99fe264 100644 --- a/OpenSim/Grid/MessagingServer.Modules/MessageService.cs +++ b/OpenSim/Grid/MessagingServer.Modules/MessageService.cs | |||
@@ -322,7 +322,7 @@ namespace OpenSim.Grid.MessagingServer.Modules | |||
322 | /// </summary> | 322 | /// </summary> |
323 | /// <param name="request">UserServer Data</param> | 323 | /// <param name="request">UserServer Data</param> |
324 | /// <returns></returns> | 324 | /// <returns></returns> |
325 | public XmlRpcResponse UserLoggedOn(XmlRpcRequest request) | 325 | public XmlRpcResponse UserLoggedOn(XmlRpcRequest request, IPEndPoint remoteClient) |
326 | { | 326 | { |
327 | Hashtable requestData = (Hashtable)request.Params[0]; | 327 | Hashtable requestData = (Hashtable)request.Params[0]; |
328 | 328 | ||
@@ -370,7 +370,7 @@ namespace OpenSim.Grid.MessagingServer.Modules | |||
370 | /// </summary> | 370 | /// </summary> |
371 | /// <param name="request"></param> | 371 | /// <param name="request"></param> |
372 | /// <returns></returns> | 372 | /// <returns></returns> |
373 | public XmlRpcResponse UserLoggedOff(XmlRpcRequest request) | 373 | public XmlRpcResponse UserLoggedOff(XmlRpcRequest request, IPEndPoint remoteClient) |
374 | { | 374 | { |
375 | m_log.Info("[USERLOGOFF]: User logged off called"); | 375 | m_log.Info("[USERLOGOFF]: User logged off called"); |
376 | Hashtable requestData = (Hashtable)request.Params[0]; | 376 | Hashtable requestData = (Hashtable)request.Params[0]; |
@@ -383,7 +383,7 @@ namespace OpenSim.Grid.MessagingServer.Modules | |||
383 | 383 | ||
384 | #endregion | 384 | #endregion |
385 | 385 | ||
386 | public XmlRpcResponse GetPresenceInfoBulk(XmlRpcRequest request) | 386 | public XmlRpcResponse GetPresenceInfoBulk(XmlRpcRequest request, IPEndPoint remoteClient) |
387 | { | 387 | { |
388 | Hashtable paramHash = (Hashtable)request.Params[0]; | 388 | Hashtable paramHash = (Hashtable)request.Params[0]; |
389 | Hashtable result = new Hashtable(); | 389 | Hashtable result = new Hashtable(); |
@@ -426,7 +426,7 @@ namespace OpenSim.Grid.MessagingServer.Modules | |||
426 | } | 426 | } |
427 | } | 427 | } |
428 | 428 | ||
429 | public XmlRpcResponse AgentLocation(XmlRpcRequest request) | 429 | public XmlRpcResponse AgentLocation(XmlRpcRequest request, IPEndPoint remoteClient) |
430 | { | 430 | { |
431 | Hashtable requestData = (Hashtable)request.Params[0]; | 431 | Hashtable requestData = (Hashtable)request.Params[0]; |
432 | Hashtable result = new Hashtable(); | 432 | Hashtable result = new Hashtable(); |
@@ -441,7 +441,7 @@ namespace OpenSim.Grid.MessagingServer.Modules | |||
441 | return response; | 441 | return response; |
442 | } | 442 | } |
443 | 443 | ||
444 | public XmlRpcResponse AgentLeaving(XmlRpcRequest request) | 444 | public XmlRpcResponse AgentLeaving(XmlRpcRequest request, IPEndPoint remoteClient) |
445 | { | 445 | { |
446 | Hashtable requestData = (Hashtable)request.Params[0]; | 446 | Hashtable requestData = (Hashtable)request.Params[0]; |
447 | Hashtable result = new Hashtable(); | 447 | Hashtable result = new Hashtable(); |
@@ -455,7 +455,7 @@ namespace OpenSim.Grid.MessagingServer.Modules | |||
455 | return response; | 455 | return response; |
456 | } | 456 | } |
457 | 457 | ||
458 | public XmlRpcResponse ProcessRegionShutdown(XmlRpcRequest request) | 458 | public XmlRpcResponse ProcessRegionShutdown(XmlRpcRequest request, IPEndPoint remoteClient) |
459 | { | 459 | { |
460 | Hashtable requestData = (Hashtable)request.Params[0]; | 460 | Hashtable requestData = (Hashtable)request.Params[0]; |
461 | Hashtable result = new Hashtable(); | 461 | Hashtable result = new Hashtable(); |
diff --git a/OpenSim/Grid/UserServer.Modules/MessageServersConnector.cs b/OpenSim/Grid/UserServer.Modules/MessageServersConnector.cs index 330ced2..f326100 100644 --- a/OpenSim/Grid/UserServer.Modules/MessageServersConnector.cs +++ b/OpenSim/Grid/UserServer.Modules/MessageServersConnector.cs | |||
@@ -166,7 +166,7 @@ namespace OpenSim.Grid.UserServer.Modules | |||
166 | } | 166 | } |
167 | 167 | ||
168 | } | 168 | } |
169 | public XmlRpcResponse XmlRPCRegisterMessageServer(XmlRpcRequest request) | 169 | public XmlRpcResponse XmlRPCRegisterMessageServer(XmlRpcRequest request, IPEndPoint remoteClient) |
170 | { | 170 | { |
171 | XmlRpcResponse response = new XmlRpcResponse(); | 171 | XmlRpcResponse response = new XmlRpcResponse(); |
172 | Hashtable requestData = (Hashtable)request.Params[0]; | 172 | Hashtable requestData = (Hashtable)request.Params[0]; |
@@ -187,7 +187,7 @@ namespace OpenSim.Grid.UserServer.Modules | |||
187 | } | 187 | } |
188 | return response; | 188 | return response; |
189 | } | 189 | } |
190 | public XmlRpcResponse XmlRPCDeRegisterMessageServer(XmlRpcRequest request) | 190 | public XmlRpcResponse XmlRPCDeRegisterMessageServer(XmlRpcRequest request, IPEndPoint remoteClient) |
191 | { | 191 | { |
192 | XmlRpcResponse response = new XmlRpcResponse(); | 192 | XmlRpcResponse response = new XmlRpcResponse(); |
193 | Hashtable requestData = (Hashtable)request.Params[0]; | 193 | Hashtable requestData = (Hashtable)request.Params[0]; |
@@ -203,7 +203,7 @@ namespace OpenSim.Grid.UserServer.Modules | |||
203 | } | 203 | } |
204 | return response; | 204 | return response; |
205 | } | 205 | } |
206 | public XmlRpcResponse XmlRPCUserMovedtoRegion(XmlRpcRequest request) | 206 | public XmlRpcResponse XmlRPCUserMovedtoRegion(XmlRpcRequest request, IPEndPoint remoteClient) |
207 | { | 207 | { |
208 | XmlRpcResponse response = new XmlRpcResponse(); | 208 | XmlRpcResponse response = new XmlRpcResponse(); |
209 | Hashtable requestData = (Hashtable)request.Params[0]; | 209 | Hashtable requestData = (Hashtable)request.Params[0]; |
@@ -430,7 +430,7 @@ namespace OpenSim.Grid.UserServer.Modules | |||
430 | } | 430 | } |
431 | } | 431 | } |
432 | 432 | ||
433 | public XmlRpcResponse RegionStartup(XmlRpcRequest request) | 433 | public XmlRpcResponse RegionStartup(XmlRpcRequest request, IPEndPoint remoteClient) |
434 | { | 434 | { |
435 | Hashtable requestData = (Hashtable)request.Params[0]; | 435 | Hashtable requestData = (Hashtable)request.Params[0]; |
436 | Hashtable result = new Hashtable(); | 436 | Hashtable result = new Hashtable(); |
@@ -449,7 +449,7 @@ namespace OpenSim.Grid.UserServer.Modules | |||
449 | return response; | 449 | return response; |
450 | } | 450 | } |
451 | 451 | ||
452 | public XmlRpcResponse RegionShutdown(XmlRpcRequest request) | 452 | public XmlRpcResponse RegionShutdown(XmlRpcRequest request, IPEndPoint remoteClient) |
453 | { | 453 | { |
454 | Hashtable requestData = (Hashtable)request.Params[0]; | 454 | Hashtable requestData = (Hashtable)request.Params[0]; |
455 | Hashtable result = new Hashtable(); | 455 | Hashtable result = new Hashtable(); |
@@ -468,7 +468,7 @@ namespace OpenSim.Grid.UserServer.Modules | |||
468 | return response; | 468 | return response; |
469 | } | 469 | } |
470 | 470 | ||
471 | public XmlRpcResponse AgentLocation(XmlRpcRequest request) | 471 | public XmlRpcResponse AgentLocation(XmlRpcRequest request, IPEndPoint remoteClient) |
472 | { | 472 | { |
473 | Hashtable requestData = (Hashtable)request.Params[0]; | 473 | Hashtable requestData = (Hashtable)request.Params[0]; |
474 | Hashtable result = new Hashtable(); | 474 | Hashtable result = new Hashtable(); |
@@ -489,7 +489,7 @@ namespace OpenSim.Grid.UserServer.Modules | |||
489 | return response; | 489 | return response; |
490 | } | 490 | } |
491 | 491 | ||
492 | public XmlRpcResponse AgentLeaving(XmlRpcRequest request) | 492 | public XmlRpcResponse AgentLeaving(XmlRpcRequest request, IPEndPoint remoteClient) |
493 | { | 493 | { |
494 | Hashtable requestData = (Hashtable)request.Params[0]; | 494 | Hashtable requestData = (Hashtable)request.Params[0]; |
495 | Hashtable result = new Hashtable(); | 495 | Hashtable result = new Hashtable(); |
diff --git a/OpenSim/Grid/UserServer.Modules/UserLoginService.cs b/OpenSim/Grid/UserServer.Modules/UserLoginService.cs index 9eb8743..8fd9c6d 100644 --- a/OpenSim/Grid/UserServer.Modules/UserLoginService.cs +++ b/OpenSim/Grid/UserServer.Modules/UserLoginService.cs | |||
@@ -28,6 +28,7 @@ | |||
28 | using System; | 28 | using System; |
29 | using System.Collections; | 29 | using System.Collections; |
30 | using System.Collections.Generic; | 30 | using System.Collections.Generic; |
31 | using System.Net; | ||
31 | using System.Reflection; | 32 | using System.Reflection; |
32 | using System.Text.RegularExpressions; | 33 | using System.Text.RegularExpressions; |
33 | using log4net; | 34 | using log4net; |
@@ -368,7 +369,7 @@ namespace OpenSim.Grid.UserServer.Modules | |||
368 | return true; | 369 | return true; |
369 | } | 370 | } |
370 | 371 | ||
371 | public XmlRpcResponse XmlRPCSetLoginParams(XmlRpcRequest request) | 372 | public XmlRpcResponse XmlRPCSetLoginParams(XmlRpcRequest request, IPEndPoint remoteClient) |
372 | { | 373 | { |
373 | XmlRpcResponse response = new XmlRpcResponse(); | 374 | XmlRpcResponse response = new XmlRpcResponse(); |
374 | Hashtable requestData = (Hashtable)request.Params[0]; | 375 | Hashtable requestData = (Hashtable)request.Params[0]; |
diff --git a/OpenSim/Grid/UserServer.Modules/UserManager.cs b/OpenSim/Grid/UserServer.Modules/UserManager.cs index 6f2720a..8fb3de5 100644 --- a/OpenSim/Grid/UserServer.Modules/UserManager.cs +++ b/OpenSim/Grid/UserServer.Modules/UserManager.cs | |||
@@ -28,6 +28,7 @@ | |||
28 | using System; | 28 | using System; |
29 | using System.Collections; | 29 | using System.Collections; |
30 | using System.Collections.Generic; | 30 | using System.Collections.Generic; |
31 | using System.Net; | ||
31 | using System.Reflection; | 32 | using System.Reflection; |
32 | using log4net; | 33 | using log4net; |
33 | using Nwc.XmlRpc; | 34 | using Nwc.XmlRpc; |
@@ -201,7 +202,7 @@ namespace OpenSim.Grid.UserServer.Modules | |||
201 | 202 | ||
202 | #region XMLRPC User Methods | 203 | #region XMLRPC User Methods |
203 | 204 | ||
204 | public XmlRpcResponse XmlRPCGetAvatarPickerAvatar(XmlRpcRequest request) | 205 | public XmlRpcResponse XmlRPCGetAvatarPickerAvatar(XmlRpcRequest request, IPEndPoint remoteClient) |
205 | { | 206 | { |
206 | // XmlRpcResponse response = new XmlRpcResponse(); | 207 | // XmlRpcResponse response = new XmlRpcResponse(); |
207 | Hashtable requestData = (Hashtable)request.Params[0]; | 208 | Hashtable requestData = (Hashtable)request.Params[0]; |
@@ -218,7 +219,7 @@ namespace OpenSim.Grid.UserServer.Modules | |||
218 | return AvatarPickerListtoXmlRPCResponse(queryID, returnAvatar); | 219 | return AvatarPickerListtoXmlRPCResponse(queryID, returnAvatar); |
219 | } | 220 | } |
220 | 221 | ||
221 | public XmlRpcResponse XmlRPCAtRegion(XmlRpcRequest request) | 222 | public XmlRpcResponse XmlRPCAtRegion(XmlRpcRequest request, IPEndPoint remoteClient) |
222 | { | 223 | { |
223 | XmlRpcResponse response = new XmlRpcResponse(); | 224 | XmlRpcResponse response = new XmlRpcResponse(); |
224 | Hashtable requestData = (Hashtable)request.Params[0]; | 225 | Hashtable requestData = (Hashtable)request.Params[0]; |
@@ -253,7 +254,7 @@ namespace OpenSim.Grid.UserServer.Modules | |||
253 | return response; | 254 | return response; |
254 | } | 255 | } |
255 | 256 | ||
256 | public XmlRpcResponse XmlRPCGetUserMethodName(XmlRpcRequest request) | 257 | public XmlRpcResponse XmlRPCGetUserMethodName(XmlRpcRequest request, IPEndPoint remoteClient) |
257 | { | 258 | { |
258 | // XmlRpcResponse response = new XmlRpcResponse(); | 259 | // XmlRpcResponse response = new XmlRpcResponse(); |
259 | Hashtable requestData = (Hashtable)request.Params[0]; | 260 | Hashtable requestData = (Hashtable)request.Params[0]; |
@@ -290,7 +291,7 @@ namespace OpenSim.Grid.UserServer.Modules | |||
290 | return ProfileToXmlRPCResponse(userProfile); | 291 | return ProfileToXmlRPCResponse(userProfile); |
291 | } | 292 | } |
292 | 293 | ||
293 | public XmlRpcResponse XmlRPCGetUserMethodUUID(XmlRpcRequest request) | 294 | public XmlRpcResponse XmlRPCGetUserMethodUUID(XmlRpcRequest request, IPEndPoint remoteClient) |
294 | { | 295 | { |
295 | // XmlRpcResponse response = new XmlRpcResponse(); | 296 | // XmlRpcResponse response = new XmlRpcResponse(); |
296 | Hashtable requestData = (Hashtable)request.Params[0]; | 297 | Hashtable requestData = (Hashtable)request.Params[0]; |
@@ -323,7 +324,7 @@ namespace OpenSim.Grid.UserServer.Modules | |||
323 | return ProfileToXmlRPCResponse(userProfile); | 324 | return ProfileToXmlRPCResponse(userProfile); |
324 | } | 325 | } |
325 | 326 | ||
326 | public XmlRpcResponse XmlRPCGetAgentMethodUUID(XmlRpcRequest request) | 327 | public XmlRpcResponse XmlRPCGetAgentMethodUUID(XmlRpcRequest request, IPEndPoint remoteClient) |
327 | { | 328 | { |
328 | XmlRpcResponse response = new XmlRpcResponse(); | 329 | XmlRpcResponse response = new XmlRpcResponse(); |
329 | Hashtable requestData = (Hashtable)request.Params[0]; | 330 | Hashtable requestData = (Hashtable)request.Params[0]; |
@@ -372,7 +373,7 @@ namespace OpenSim.Grid.UserServer.Modules | |||
372 | return response; | 373 | return response; |
373 | } | 374 | } |
374 | 375 | ||
375 | public XmlRpcResponse XmlRpcResponseXmlRPCUpdateUserProfile(XmlRpcRequest request) | 376 | public XmlRpcResponse XmlRpcResponseXmlRPCUpdateUserProfile(XmlRpcRequest request, IPEndPoint remoteClient) |
376 | { | 377 | { |
377 | m_log.Debug("[UserManager]: Got request to update user profile"); | 378 | m_log.Debug("[UserManager]: Got request to update user profile"); |
378 | XmlRpcResponse response = new XmlRpcResponse(); | 379 | XmlRpcResponse response = new XmlRpcResponse(); |
@@ -565,7 +566,7 @@ namespace OpenSim.Grid.UserServer.Modules | |||
565 | return response; | 566 | return response; |
566 | } | 567 | } |
567 | 568 | ||
568 | public XmlRpcResponse XmlRPCLogOffUserMethodUUID(XmlRpcRequest request) | 569 | public XmlRpcResponse XmlRPCLogOffUserMethodUUID(XmlRpcRequest request, IPEndPoint remoteClient) |
569 | { | 570 | { |
570 | XmlRpcResponse response = new XmlRpcResponse(); | 571 | XmlRpcResponse response = new XmlRpcResponse(); |
571 | Hashtable requestData = (Hashtable)request.Params[0]; | 572 | Hashtable requestData = (Hashtable)request.Params[0]; |
diff --git a/OpenSim/Grid/UserServer.Modules/UserServerAvatarAppearanceModule.cs b/OpenSim/Grid/UserServer.Modules/UserServerAvatarAppearanceModule.cs index 4ed8597..a7ebc85 100644 --- a/OpenSim/Grid/UserServer.Modules/UserServerAvatarAppearanceModule.cs +++ b/OpenSim/Grid/UserServer.Modules/UserServerAvatarAppearanceModule.cs | |||
@@ -28,6 +28,7 @@ | |||
28 | using System; | 28 | using System; |
29 | using System.Collections; | 29 | using System.Collections; |
30 | using System.Collections.Generic; | 30 | using System.Collections.Generic; |
31 | using System.Net; | ||
31 | using System.Reflection; | 32 | using System.Reflection; |
32 | using log4net; | 33 | using log4net; |
33 | using Nwc.XmlRpc; | 34 | using Nwc.XmlRpc; |
@@ -70,7 +71,7 @@ namespace OpenSim.Grid.UserServer.Modules | |||
70 | m_httpServer.AddXmlRPCHandler("update_avatar_appearance", XmlRPCUpdateAvatarAppearance); | 71 | m_httpServer.AddXmlRPCHandler("update_avatar_appearance", XmlRPCUpdateAvatarAppearance); |
71 | } | 72 | } |
72 | 73 | ||
73 | public XmlRpcResponse XmlRPCGetAvatarAppearance(XmlRpcRequest request) | 74 | public XmlRpcResponse XmlRPCGetAvatarAppearance(XmlRpcRequest request, IPEndPoint remoteClient) |
74 | { | 75 | { |
75 | XmlRpcResponse response = new XmlRpcResponse(); | 76 | XmlRpcResponse response = new XmlRpcResponse(); |
76 | Hashtable requestData = (Hashtable)request.Params[0]; | 77 | Hashtable requestData = (Hashtable)request.Params[0]; |
@@ -101,7 +102,7 @@ namespace OpenSim.Grid.UserServer.Modules | |||
101 | return response; | 102 | return response; |
102 | } | 103 | } |
103 | 104 | ||
104 | public XmlRpcResponse XmlRPCUpdateAvatarAppearance(XmlRpcRequest request) | 105 | public XmlRpcResponse XmlRPCUpdateAvatarAppearance(XmlRpcRequest request, IPEndPoint remoteClient) |
105 | { | 106 | { |
106 | XmlRpcResponse response = new XmlRpcResponse(); | 107 | XmlRpcResponse response = new XmlRpcResponse(); |
107 | Hashtable requestData = (Hashtable)request.Params[0]; | 108 | Hashtable requestData = (Hashtable)request.Params[0]; |
diff --git a/OpenSim/Grid/UserServer.Modules/UserServerFriendsModule.cs b/OpenSim/Grid/UserServer.Modules/UserServerFriendsModule.cs index 1684eb7..c860834 100644 --- a/OpenSim/Grid/UserServer.Modules/UserServerFriendsModule.cs +++ b/OpenSim/Grid/UserServer.Modules/UserServerFriendsModule.cs | |||
@@ -28,6 +28,7 @@ | |||
28 | using System; | 28 | using System; |
29 | using System.Collections; | 29 | using System.Collections; |
30 | using System.Collections.Generic; | 30 | using System.Collections.Generic; |
31 | using System.Net; | ||
31 | using System.Reflection; | 32 | using System.Reflection; |
32 | using log4net; | 33 | using log4net; |
33 | using Nwc.XmlRpc; | 34 | using Nwc.XmlRpc; |
@@ -93,7 +94,7 @@ namespace OpenSim.Grid.UserServer.Modules | |||
93 | return response; | 94 | return response; |
94 | } | 95 | } |
95 | 96 | ||
96 | public XmlRpcResponse XmlRpcResponseXmlRPCAddUserFriend(XmlRpcRequest request) | 97 | public XmlRpcResponse XmlRpcResponseXmlRPCAddUserFriend(XmlRpcRequest request, IPEndPoint remoteClient) |
97 | { | 98 | { |
98 | XmlRpcResponse response = new XmlRpcResponse(); | 99 | XmlRpcResponse response = new XmlRpcResponse(); |
99 | Hashtable requestData = (Hashtable)request.Params[0]; | 100 | Hashtable requestData = (Hashtable)request.Params[0]; |
@@ -115,7 +116,7 @@ namespace OpenSim.Grid.UserServer.Modules | |||
115 | return response; | 116 | return response; |
116 | } | 117 | } |
117 | 118 | ||
118 | public XmlRpcResponse XmlRpcResponseXmlRPCRemoveUserFriend(XmlRpcRequest request) | 119 | public XmlRpcResponse XmlRpcResponseXmlRPCRemoveUserFriend(XmlRpcRequest request, IPEndPoint remoteClient) |
119 | { | 120 | { |
120 | XmlRpcResponse response = new XmlRpcResponse(); | 121 | XmlRpcResponse response = new XmlRpcResponse(); |
121 | Hashtable requestData = (Hashtable)request.Params[0]; | 122 | Hashtable requestData = (Hashtable)request.Params[0]; |
@@ -135,7 +136,7 @@ namespace OpenSim.Grid.UserServer.Modules | |||
135 | return response; | 136 | return response; |
136 | } | 137 | } |
137 | 138 | ||
138 | public XmlRpcResponse XmlRpcResponseXmlRPCUpdateUserFriendPerms(XmlRpcRequest request) | 139 | public XmlRpcResponse XmlRpcResponseXmlRPCUpdateUserFriendPerms(XmlRpcRequest request, IPEndPoint remoteClient) |
139 | { | 140 | { |
140 | XmlRpcResponse response = new XmlRpcResponse(); | 141 | XmlRpcResponse response = new XmlRpcResponse(); |
141 | Hashtable requestData = (Hashtable)request.Params[0]; | 142 | Hashtable requestData = (Hashtable)request.Params[0]; |
@@ -156,7 +157,7 @@ namespace OpenSim.Grid.UserServer.Modules | |||
156 | return response; | 157 | return response; |
157 | } | 158 | } |
158 | 159 | ||
159 | public XmlRpcResponse XmlRpcResponseXmlRPCGetUserFriendList(XmlRpcRequest request) | 160 | public XmlRpcResponse XmlRpcResponseXmlRPCGetUserFriendList(XmlRpcRequest request, IPEndPoint remoteClient) |
160 | { | 161 | { |
161 | // XmlRpcResponse response = new XmlRpcResponse(); | 162 | // XmlRpcResponse response = new XmlRpcResponse(); |
162 | Hashtable requestData = (Hashtable)request.Params[0]; | 163 | Hashtable requestData = (Hashtable)request.Params[0]; |