mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 10:15:33 +08:00
* Message Server Linkages (still not ready for use so don't start it yet)
This commit is contained in:
@@ -227,6 +227,7 @@ namespace OpenSim.Grid.UserServer
|
||||
|
||||
public void NotifyMessageServersUserLoggedInToLocation(LLUUID agentID, LLUUID sessionID, LLUUID RegionID, ulong regionhandle, LLVector3 Position)
|
||||
{
|
||||
|
||||
m_messagesService.TellMessageServersAboutUser(agentID, sessionID, RegionID, regionhandle, Position);
|
||||
}
|
||||
|
||||
|
||||
@@ -119,7 +119,7 @@ namespace OpenSim.Grid.UserServer
|
||||
|
||||
if (requestData.Contains("uri"))
|
||||
{
|
||||
string URI = (string)requestData["URI"];
|
||||
string URI = (string)requestData["uri"];
|
||||
|
||||
DeRegisterMessageServer(URI);
|
||||
responseData["responsestring"] = "TRUE";
|
||||
@@ -153,6 +153,14 @@ namespace OpenSim.Grid.UserServer
|
||||
public void TellMessageServersAboutUser(LLUUID agentID, LLUUID sessionID, LLUUID RegionID, ulong regionhandle, LLVector3 Position)
|
||||
{
|
||||
// Loop over registered Message Servers ( AND THERE WILL BE MORE THEN ONE :D )
|
||||
if (MessageServers.Count > 0)
|
||||
{
|
||||
m_log.Info("[MSGCONNECTOR]: Sending login notice to registered message servers");
|
||||
}
|
||||
else
|
||||
{
|
||||
m_log.Info("[MSGCONNECTOR]: No Message Servers registered, ignoring");
|
||||
}
|
||||
foreach (MessageServerInfo serv in MessageServers.Values)
|
||||
{
|
||||
NotifyMessageServerAboutUser(serv, agentID, sessionID, RegionID, regionhandle, Position);
|
||||
|
||||
@@ -144,7 +144,13 @@ namespace OpenSim.Grid.UserServer
|
||||
m_log.ErrorFormat(
|
||||
"[LOGIN]: XMLRPC request for {0} failed, fault code: {1}, reason: {2}",
|
||||
SimInfo.httpServerURI, GridResp.FaultCode, GridResp.FaultString);
|
||||
}
|
||||
}
|
||||
handler001 = OnUserLoggedInAtLocation;
|
||||
if (handler001 != null)
|
||||
{
|
||||
m_log.Info("[LOGIN]: Letting other objects know about login");
|
||||
handler001(theUser.UUID, theUser.currentAgent.sessionID, theUser.currentAgent.currentRegion, theUser.currentAgent.currentHandle, theUser.currentAgent.currentPos);
|
||||
}
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
@@ -219,6 +225,7 @@ namespace OpenSim.Grid.UserServer
|
||||
handler001 = OnUserLoggedInAtLocation;
|
||||
if (handler001 != null)
|
||||
{
|
||||
m_log.Info("[LOGIN]: Letting other objects know about login");
|
||||
handler001(theUser.UUID, theUser.currentAgent.sessionID, theUser.currentAgent.currentRegion, theUser.currentAgent.currentHandle, theUser.currentAgent.currentPos);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user