29 using System.Collections.Generic;
31 using System.Reflection;
32 using System.Threading;
35 using OpenSim.Framework;
36 using MySql.Data.MySqlClient;
38 namespace OpenSim.Data.MySQL
49 base(connectionString, realm,
"Presence")
56 sessionID.ToString());
66 using (MySqlCommand cmd =
new MySqlCommand())
68 cmd.CommandText = String.Format(
"delete from {0} where `RegionID`=?RegionID", m_Realm);
70 cmd.Parameters.AddWithValue(
"?RegionID", regionID.ToString());
78 PresenceData[] pd = Get(
"SessionID", sessionID.ToString());
82 if (regionID == UUID.Zero)
85 using (MySqlCommand cmd =
new MySqlCommand())
87 cmd.CommandText = String.Format(
"update {0} set RegionID=?RegionID, LastSeen=NOW() where `SessionID`=?SessionID", m_Realm);
89 cmd.Parameters.AddWithValue(
"?SessionID", sessionID.ToString());
90 cmd.Parameters.AddWithValue(
"?RegionID", regionID.ToString());
92 if (ExecuteNonQuery(cmd) == 0)
102 secureSessionID.ToString());
107 if(ret[0].UserID != agentId.ToString())
void LogoutRegionAgents(UUID regionID)
An interface for connecting to the presence datastore
bool ReportAgent(UUID sessionID, UUID regionID)
PresenceData Get(UUID sessionID)
A MySQL Interface for the Grid Server
MySQLPresenceData(string connectionString, string realm)
bool VerifyAgent(UUID agentId, UUID secureSessionID)