xmppFrameWork的使用

原文地址:http://blog.csdn.net/chengyakun11/article/details/19235769


XMPPRoster *xmppRoster;//用戶對象  

subscribe 訂閱


獲取好友列表

- (void)queryRoster {
    NSXMLElement *query = [NSXMLElement elementWithName:@"query" xmlns:@"jabber:iq:roster"];
    NSXMLElement *iq = [NSXMLElement elementWithName:@"iq"];
    XMPPJID *myJID = self.xmppStream.myJID;
    [iq addAttributeWithName:@"from" stringValue:myJID.description];
    [iq addAttributeWithName:@"to" stringValue:myJID.domain];
    [iq addAttributeWithName:@"id" stringValue:[self generateID]];
    [iq addAttributeWithName:@"type" stringValue:@"get"];
    [iq addChild:query];
    [self.xmppStream sendElement:iq];
}



相關博客:


IOS XMPPFRAMEWORK IntroToFramework

http://hi.baidu.com/justtmiss/item/81d57219cdb195a0ffded506

XMPP協議學習筆記

http://blog.csdn.net/imyfriend/article/details/8584360



[iPhone高級] 基於XMPP的IOS聊天客戶端程序(XMPP服務器架構)

[iPhone高級] 基於XMPP的IOS聊天客戶端程序(IOS端一)

 

[iPhone高級] 基於XMPP的IOS聊天客戶端程序(IOS端二)

[iPhone高級] 基於XMPP的IOS聊天客戶端程序(IOS端三)

http://blog.csdn.net/kangx6?viewmode=contents



XMPPFrameWork IOS 開發(一)xmpp簡介

XMPPFrameWork IOS 開發(二)- xcode配置

XMPPFrameWork IOS 開發(三)登錄

XMPPFrameWork IOS 開發(四)消息和好友上下線

XMPPFrameWork IOS 開發(五)獲取好友信息和添加刪除好友

XMPPFrameWork IOS 開發(六)聊天室

XMPPFrameWork IOS 開發(七)消息回執

http://blog.csdn.net/acorld?viewmode=contents


【iOS XMPP】使用XMPPFramewok  系列

【iOS XMPP】使用XMPPFramewok(五):好友列表

【iOS XMPP】使用XMPPFramewok(四):收發消息

http://www.cnblogs.com/dyingbleed/category/467219.html





XMPPFramework 翻譯與學習筆記

http://lejia.li/post/2012-07-05/40030556375



Jabber/XMPP中文翻譯計劃

http://wiki.jabbercn.org/首頁


 

ios,xmpp 添加好友與好友請求處理

 

http://blog.csdn.net/ihefe/article/details/8230414


xmppframework for iOS client(五) 添加AutoPing

http://www.cnblogs.com/zhidao-chen/archive/2013/04/23/3037158.html




xmpp中的offline subscribe presence接收(離線添加好友邀請的接收問題)

http://baisong.bokee.com/5816592.html


XMPPFrameWork之bind Rsource(多點登陸

http://www.cnbluebox.com/?p=177




XMPP協議中關於presence的相關文檔研究

http://blog.csdn.net/tjsjping/article/details/6836119

XMPP-選擇合適的時機註冊Presence處理函數

http://guangboo.org/2013/05/15/xmpp-presence-register-handler



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章