LIBOMV-882: Fetch XMPP_HOST from login response
Available as Client.Network.XMPPHost git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@3478 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
@@ -261,6 +261,7 @@ namespace OpenMetaverse
|
||||
public string InventoryHost;
|
||||
public int MaxAgentGroups;
|
||||
public string OpenIDUrl;
|
||||
public string XMPPHost;
|
||||
|
||||
/// <summary>
|
||||
/// Parse LLSD Login Reply Data
|
||||
@@ -492,6 +493,11 @@ namespace OpenMetaverse
|
||||
OpenIDUrl = ParseString("openid_url", reply);
|
||||
}
|
||||
|
||||
if (reply.ContainsKey("xmpp_host"))
|
||||
{
|
||||
XMPPHost = ParseString("xmpp_host", reply);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#region Parsing Helpers
|
||||
@@ -824,7 +830,8 @@ namespace OpenMetaverse
|
||||
public string LoginMessage { get { return InternalLoginMessage; } }
|
||||
/// <summary>Maximum number of groups an agent can belong to, -1 for unlimited</summary>
|
||||
public int MaxAgentGroups = -1;
|
||||
|
||||
/// <summary>XMPP server to connect to for Group chat and IM services</summary>
|
||||
public string XMPPHost;
|
||||
#endregion
|
||||
|
||||
#region Private Members
|
||||
@@ -1260,6 +1267,7 @@ namespace OpenMetaverse
|
||||
|
||||
// Misc:
|
||||
MaxAgentGroups = reply.MaxAgentGroups;
|
||||
XMPPHost = reply.XMPPHost;
|
||||
|
||||
//uint timestamp = (uint)reply.seconds_since_epoch;
|
||||
//DateTime time = Helpers.UnixTimeToDateTime(timestamp); // TODO: Do something with this?
|
||||
|
||||
Reference in New Issue
Block a user