diff options
author | David Walter Seikel | 2016-11-03 21:44:39 +1000 |
---|---|---|
committer | David Walter Seikel | 2016-11-03 21:44:39 +1000 |
commit | 134f86e8d5c414409631b25b8c6f0ee45fbd8631 (patch) | |
tree | 216b89d3fb89acfb81be1e440c25c41ab09fa96d /OpenSim/Server/Handlers/Hypergrid/UserAgentServerConnector.cs | |
parent | More changing to production grid. Double oops. (diff) | |
download | opensim-SC-134f86e8d5c414409631b25b8c6f0ee45fbd8631.zip opensim-SC-134f86e8d5c414409631b25b8c6f0ee45fbd8631.tar.gz opensim-SC-134f86e8d5c414409631b25b8c6f0ee45fbd8631.tar.bz2 opensim-SC-134f86e8d5c414409631b25b8c6f0ee45fbd8631.tar.xz |
Initial update to OpenSim 0.8.2.1 source code.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Server/Handlers/Hypergrid/UserAgentServerConnector.cs | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/OpenSim/Server/Handlers/Hypergrid/UserAgentServerConnector.cs b/OpenSim/Server/Handlers/Hypergrid/UserAgentServerConnector.cs index db62aaa..e112e0e 100644 --- a/OpenSim/Server/Handlers/Hypergrid/UserAgentServerConnector.cs +++ b/OpenSim/Server/Handlers/Hypergrid/UserAgentServerConnector.cs | |||
@@ -62,10 +62,15 @@ namespace OpenSim.Server.Handlers.Hypergrid | |||
62 | private bool m_VerifyCallers = false; | 62 | private bool m_VerifyCallers = false; |
63 | 63 | ||
64 | public UserAgentServerConnector(IConfigSource config, IHttpServer server) : | 64 | public UserAgentServerConnector(IConfigSource config, IHttpServer server) : |
65 | this(config, server, null) | 65 | this(config, server, (IFriendsSimConnector)null) |
66 | { | 66 | { |
67 | } | 67 | } |
68 | 68 | ||
69 | public UserAgentServerConnector(IConfigSource config, IHttpServer server, string configName) : | ||
70 | this(config, server) | ||
71 | { | ||
72 | } | ||
73 | |||
69 | public UserAgentServerConnector(IConfigSource config, IHttpServer server, IFriendsSimConnector friendsConnector) : | 74 | public UserAgentServerConnector(IConfigSource config, IHttpServer server, IFriendsSimConnector friendsConnector) : |
70 | base(config, server, String.Empty) | 75 | base(config, server, String.Empty) |
71 | { | 76 | { |
@@ -94,8 +99,10 @@ namespace OpenSim.Server.Handlers.Hypergrid | |||
94 | server.AddXmlRPCHandler("verify_client", VerifyClient, false); | 99 | server.AddXmlRPCHandler("verify_client", VerifyClient, false); |
95 | server.AddXmlRPCHandler("logout_agent", LogoutAgent, false); | 100 | server.AddXmlRPCHandler("logout_agent", LogoutAgent, false); |
96 | 101 | ||
102 | #pragma warning disable 0612 | ||
97 | server.AddXmlRPCHandler("status_notification", StatusNotification, false); | 103 | server.AddXmlRPCHandler("status_notification", StatusNotification, false); |
98 | server.AddXmlRPCHandler("get_online_friends", GetOnlineFriends, false); | 104 | server.AddXmlRPCHandler("get_online_friends", GetOnlineFriends, false); |
105 | #pragma warning restore 0612 | ||
99 | server.AddXmlRPCHandler("get_user_info", GetUserInfo, false); | 106 | server.AddXmlRPCHandler("get_user_info", GetUserInfo, false); |
100 | server.AddXmlRPCHandler("get_server_urls", GetServerURLs, false); | 107 | server.AddXmlRPCHandler("get_server_urls", GetServerURLs, false); |
101 | 108 | ||
@@ -103,7 +110,7 @@ namespace OpenSim.Server.Handlers.Hypergrid | |||
103 | server.AddXmlRPCHandler("get_uui", GetUUI, false); | 110 | server.AddXmlRPCHandler("get_uui", GetUUI, false); |
104 | server.AddXmlRPCHandler("get_uuid", GetUUID, false); | 111 | server.AddXmlRPCHandler("get_uuid", GetUUID, false); |
105 | 112 | ||
106 | server.AddHTTPHandler("/homeagent/", new HomeAgentHandler(m_HomeUsersService, loginServerIP, proxy).Handler); | 113 | server.AddStreamHandler(new HomeAgentHandler(m_HomeUsersService, loginServerIP, proxy)); |
107 | } | 114 | } |
108 | 115 | ||
109 | public XmlRpcResponse GetHomeRegion(XmlRpcRequest request, IPEndPoint remoteClient) | 116 | public XmlRpcResponse GetHomeRegion(XmlRpcRequest request, IPEndPoint remoteClient) |
@@ -127,6 +134,8 @@ namespace OpenSim.Server.Handlers.Hypergrid | |||
127 | hash["uuid"] = regInfo.RegionID.ToString(); | 134 | hash["uuid"] = regInfo.RegionID.ToString(); |
128 | hash["x"] = regInfo.RegionLocX.ToString(); | 135 | hash["x"] = regInfo.RegionLocX.ToString(); |
129 | hash["y"] = regInfo.RegionLocY.ToString(); | 136 | hash["y"] = regInfo.RegionLocY.ToString(); |
137 | hash["size_x"] = regInfo.RegionSizeX.ToString(); | ||
138 | hash["size_y"] = regInfo.RegionSizeY.ToString(); | ||
130 | hash["region_name"] = regInfo.RegionName; | 139 | hash["region_name"] = regInfo.RegionName; |
131 | hash["hostname"] = regInfo.ExternalHostName; | 140 | hash["hostname"] = regInfo.ExternalHostName; |
132 | hash["http_port"] = regInfo.HttpPort.ToString(); | 141 | hash["http_port"] = regInfo.HttpPort.ToString(); |
@@ -448,7 +457,6 @@ namespace OpenSim.Server.Handlers.Hypergrid | |||
448 | XmlRpcResponse response = new XmlRpcResponse(); | 457 | XmlRpcResponse response = new XmlRpcResponse(); |
449 | response.Value = hash; | 458 | response.Value = hash; |
450 | return response; | 459 | return response; |
451 | |||
452 | } | 460 | } |
453 | 461 | ||
454 | /// <summary> | 462 | /// <summary> |
@@ -466,9 +474,7 @@ namespace OpenSim.Server.Handlers.Hypergrid | |||
466 | //string portstr = (string)requestData["port"]; | 474 | //string portstr = (string)requestData["port"]; |
467 | if (requestData.ContainsKey("first") && requestData.ContainsKey("last")) | 475 | if (requestData.ContainsKey("first") && requestData.ContainsKey("last")) |
468 | { | 476 | { |
469 | UUID userID = UUID.Zero; | ||
470 | string first = (string)requestData["first"]; | 477 | string first = (string)requestData["first"]; |
471 | |||
472 | string last = (string)requestData["last"]; | 478 | string last = (string)requestData["last"]; |
473 | UUID uuid = m_HomeUsersService.GetUUID(first, last); | 479 | UUID uuid = m_HomeUsersService.GetUUID(first, last); |
474 | hash["UUID"] = uuid.ToString(); | 480 | hash["UUID"] = uuid.ToString(); |
@@ -477,7 +483,6 @@ namespace OpenSim.Server.Handlers.Hypergrid | |||
477 | XmlRpcResponse response = new XmlRpcResponse(); | 483 | XmlRpcResponse response = new XmlRpcResponse(); |
478 | response.Value = hash; | 484 | response.Value = hash; |
479 | return response; | 485 | return response; |
480 | |||
481 | } | 486 | } |
482 | } | 487 | } |
483 | } | 488 | } \ No newline at end of file |