aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--OpenSim/Grid/UserServer.Modules/MessageServersConnector.cs48
1 files changed, 29 insertions, 19 deletions
diff --git a/OpenSim/Grid/UserServer.Modules/MessageServersConnector.cs b/OpenSim/Grid/UserServer.Modules/MessageServersConnector.cs
index 7df9768..15895bf 100644
--- a/OpenSim/Grid/UserServer.Modules/MessageServersConnector.cs
+++ b/OpenSim/Grid/UserServer.Modules/MessageServersConnector.cs
@@ -167,27 +167,37 @@ namespace OpenSim.Grid.UserServer.Modules
167 } 167 }
168 168
169 public XmlRpcResponse XmlRPCRegisterMessageServer(XmlRpcRequest request, IPEndPoint remoteClient) 169 public XmlRpcResponse XmlRPCRegisterMessageServer(XmlRpcRequest request, IPEndPoint remoteClient)
170 { 170 {
171 m_log.DebugFormat(
172 "[MSGSERVER]: Beginning processing message service registration request from {0}",
173 remoteClient.Address);
174
171 XmlRpcResponse response = new XmlRpcResponse(); 175 XmlRpcResponse response = new XmlRpcResponse();
172 Hashtable requestData = (Hashtable)request.Params[0]; 176 Hashtable requestData = (Hashtable)request.Params[0];
173 Hashtable responseData = new Hashtable(); 177 Hashtable responseData = new Hashtable();
174 178
175 if (requestData.Contains("uri")) 179 if (requestData.Contains("uri"))
176 { 180 {
177 string URI = (string)requestData["uri"]; 181 string URI = (string)requestData["uri"];
178 string sendkey=(string)requestData["sendkey"]; 182 string sendkey = (string)requestData["sendkey"];
179 string recvkey=(string)requestData["recvkey"]; 183 string recvkey = (string)requestData["recvkey"];
180 MessageServerInfo m = new MessageServerInfo(); 184 MessageServerInfo m = new MessageServerInfo();
181 m.URI = URI; 185 m.URI = URI;
182 m.sendkey = sendkey; 186 m.sendkey = sendkey;
183 m.recvkey = recvkey; 187 m.recvkey = recvkey;
184 RegisterMessageServer(URI, m); 188 RegisterMessageServer(URI, m);
185 responseData["responsestring"] = "TRUE"; 189 responseData["responsestring"] = "TRUE";
186 response.Value = responseData; 190 response.Value = responseData;
187 191
188 m_log.DebugFormat( 192 m_log.DebugFormat(
189 "[MSGSERVER]: Successfully processed message service registration request from {0}", 193 "[MSGSERVER]: Successfully processed message service registration request from {0}",
190 remoteClient.Address); 194 remoteClient.Address);
195 }
196 else
197 {
198 m_log.ErrorFormat(
199 "[MSGSERVER]: Message service registration request from {0} did not contain a uri, not registering",
200 remoteClient.Address);
191 } 201 }
192 202
193 return response; 203 return response;