aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Grid/UserServer
diff options
context:
space:
mode:
authorJustin Clarke Casey2008-02-18 17:31:05 +0000
committerJustin Clarke Casey2008-02-18 17:31:05 +0000
commitb37b71b2738599419239b3e3081f9e1b5e78ec06 (patch)
treec74d1ca6404340434c9d123b725385f7efb85c50 /OpenSim/Grid/UserServer
parent* Since default loglevel is debug, I'm commenting out the resending x packet ... (diff)
downloadopensim-SC-b37b71b2738599419239b3e3081f9e1b5e78ec06.zip
opensim-SC-b37b71b2738599419239b3e3081f9e1b5e78ec06.tar.gz
opensim-SC-b37b71b2738599419239b3e3081f9e1b5e78ec06.tar.bz2
opensim-SC-b37b71b2738599419239b3e3081f9e1b5e78ec06.tar.xz
* Make RegionProfileData.RequestSimProfileData static
* Minor documentation bits
Diffstat (limited to 'OpenSim/Grid/UserServer')
-rw-r--r--OpenSim/Grid/UserServer/UserLoginService.cs24
1 files changed, 13 insertions, 11 deletions
diff --git a/OpenSim/Grid/UserServer/UserLoginService.cs b/OpenSim/Grid/UserServer/UserLoginService.cs
index 09cd9fd..58e85d8 100644
--- a/OpenSim/Grid/UserServer/UserLoginService.cs
+++ b/OpenSim/Grid/UserServer/UserLoginService.cs
@@ -72,12 +72,13 @@ namespace OpenSim.Grid.UserServer
72 bool tryDefault = false; 72 bool tryDefault = false;
73 //CFK: Since the try is always "tried", the "Home Location" message should always appear, so comment this one. 73 //CFK: Since the try is always "tried", the "Home Location" message should always appear, so comment this one.
74 //CFK: m_log.Info("[LOGIN]: Load information from the gridserver"); 74 //CFK: m_log.Info("[LOGIN]: Load information from the gridserver");
75 RegionProfileData SimInfo = new RegionProfileData(); 75
76 try 76 try
77 { 77 {
78 SimInfo = 78 RegionProfileData SimInfo =
79 SimInfo.RequestSimProfileData(theUser.currentAgent.currentHandle, m_config.GridServerURL, 79 RegionProfileData.RequestSimProfileData(
80 m_config.GridSendKey, m_config.GridRecvKey); 80 theUser.currentAgent.currentHandle, m_config.GridServerURL,
81 m_config.GridSendKey, m_config.GridRecvKey);
81 82
82 // Customise the response 83 // Customise the response
83 //CFK: This is redundant and the next message should always appear. 84 //CFK: This is redundant and the next message should always appear.
@@ -129,16 +130,18 @@ namespace OpenSim.Grid.UserServer
129 theUser.currentAgent.currentRegion = SimInfo.UUID; 130 theUser.currentAgent.currentRegion = SimInfo.UUID;
130 theUser.currentAgent.currentHandle = SimInfo.regionHandle; 131 theUser.currentAgent.currentHandle = SimInfo.regionHandle;
131 132
132 m_log.Info("[LOGIN]: " + SimInfo.regionName + " @ " + SimInfo.httpServerURI + " " + 133 m_log.Info("[LOGIN]: Sending expect user call to "
133 SimInfo.regionLocX + "," + SimInfo.regionLocY); 134 + SimInfo.regionName + " @ " + SimInfo.httpServerURI + " " +
135 SimInfo.regionLocX + "," + SimInfo.regionLocY);
134 136
135 XmlRpcRequest GridReq = new XmlRpcRequest("expect_user", SendParams); 137 XmlRpcRequest GridReq = new XmlRpcRequest("expect_user", SendParams);
136 XmlRpcResponse GridResp = GridReq.Send(SimInfo.httpServerURI, 6000); 138 XmlRpcResponse GridResp = GridReq.Send(SimInfo.httpServerURI, 6000);
137 } 139 }
138 catch (Exception) 140 catch (Exception)
139 { 141 {
140 tryDefault = true; 142 tryDefault = true;
141 } 143 }
144
142 if (tryDefault) 145 if (tryDefault)
143 { 146 {
144 // Send him to default region instead 147 // Send him to default region instead
@@ -149,12 +152,11 @@ namespace OpenSim.Grid.UserServer
149 m_log.Warn( 152 m_log.Warn(
150 "[LOGIN]: Home region not available: sending to default " + defaultHandle.ToString()); 153 "[LOGIN]: Home region not available: sending to default " + defaultHandle.ToString());
151 154
152 SimInfo = new RegionProfileData();
153 try 155 try
154 { 156 {
155 SimInfo = 157 RegionProfileData SimInfo = RegionProfileData.RequestSimProfileData(
156 SimInfo.RequestSimProfileData(defaultHandle, m_config.GridServerURL, 158 defaultHandle, m_config.GridServerURL,
157 m_config.GridSendKey, m_config.GridRecvKey); 159 m_config.GridSendKey, m_config.GridRecvKey);
158 160
159 // Customise the response 161 // Customise the response
160 m_log.Info("[LOGIN]: Home Location"); 162 m_log.Info("[LOGIN]: Home Location");