From a3851b3812aae6221714b1e61656d0853fce7124 Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Sun, 20 Jan 2008 23:08:50 +0000 Subject: * Added hooks for logout to all IUserService and all that implement it. * Added a Logout message with a name on the console * Added a *fixme* message to figure out why the current agent session is null * After updating you may notice that there's a login and also a logout --- .../Region/Communications/OGS1/OGS1GridServices.cs | 3 +++ .../Region/Communications/OGS1/OGS1UserServices.cs | 26 +++++++++++++++++++++- 2 files changed, 28 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region/Communications/OGS1') diff --git a/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs b/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs index 7cd77db..2ca9022 100644 --- a/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs +++ b/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs @@ -375,6 +375,9 @@ namespace OpenSim.Region.Communications.OGS1 return neighbours; } + + + /// /// Performs a XML-RPC query against the grid server returning mapblock information in the specified coordinates /// diff --git a/OpenSim/Region/Communications/OGS1/OGS1UserServices.cs b/OpenSim/Region/Communications/OGS1/OGS1UserServices.cs index 36ab4bb..2cf3665 100644 --- a/OpenSim/Region/Communications/OGS1/OGS1UserServices.cs +++ b/OpenSim/Region/Communications/OGS1/OGS1UserServices.cs @@ -130,7 +130,31 @@ namespace OpenSim.Region.Communications.OGS1 return buddylist; } - + + /// + /// Logs off a user on the user server + /// + /// UUID of the user + /// UUID of the Region + /// final position x + /// final position y + /// final position z + public void LogOffUser(LLUUID userid, LLUUID regionid, ulong regionhandle, float posx, float posy, float posz) + { + Hashtable param = new Hashtable(); + param["avatar_uuid"] = userid.UUID.ToString(); + param["region_uuid"] = regionid.UUID.ToString(); + param["region_handle"] = regionhandle.ToString(); + param["region_pos_x"] = posx.ToString(); + param["region_pos_y"] = posy.ToString(); + param["region_pos_z"] = posz.ToString(); + + IList parameters = new ArrayList(); + parameters.Add(param); + XmlRpcRequest req = new XmlRpcRequest("logout_of_simulator", parameters); + XmlRpcResponse resp = req.Send(m_parent.NetworkServersInfo.UserURL, 3000); + + } public UserProfileData GetUserProfile(string firstName, string lastName) { return GetUserProfile(firstName + " " + lastName); -- cgit v1.1