From 79397c31845a0bd14c0b01ac92162b5c2f3fb29c Mon Sep 17 00:00:00 2001 From: Latif Khalifa Date: Sun, 6 Feb 2011 16:06:26 +0000 Subject: [PATCH] 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 --- OpenMetaverse/Login.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/OpenMetaverse/Login.cs b/OpenMetaverse/Login.cs index 97c9f9c1..0550561d 100644 --- a/OpenMetaverse/Login.cs +++ b/OpenMetaverse/Login.cs @@ -261,6 +261,7 @@ namespace OpenMetaverse public string InventoryHost; public int MaxAgentGroups; public string OpenIDUrl; + public string XMPPHost; /// /// 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; } } /// Maximum number of groups an agent can belong to, -1 for unlimited public int MaxAgentGroups = -1; - + /// XMPP server to connect to for Group chat and IM services + 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?