//SEND: //<iq xmlns="jabber:client" id="agsXMPP_3" type="get" to="localhost"> // <query xmlns="jabber:iq:agents" /> //</iq> // //RECV: //<iq xmlns="jabber:client" from="localhost" to="test@localhost/MF" type="result" id="agsXMPP_3"> // <query xmlns="jabber:iq:agents" /> //</iq> private void ProcessAgentsIQ(IQ iq) { AgentsIq agentsIq = new AgentsIq(IqType.result); agentsIq.Namespace = agsXMPP.Uri.CLIENT; agentsIq.Id = iq.Id; agentsIq.From = iq.To; agentsIq.To = this.m_ClientAccount.JID; ///*******此处为配置扩展****************** ///当前仅代理网关仅为空 ///*************************************** Send(agentsIq); }
public void RequestAgents() { AgentsIq iq = new AgentsIq(IqType.get, new Jid(base.Server)); IqGrabber.SendIq(iq, new IqCB(OnAgents), null); }