zoukankan      html  css  js  c++  java
  • xmpp主要就这点东西,

    1,

    - (void)setupStream

    {

        xmppStream = [[XMPPStream alloc]init];

        [xmppStreamaddDelegate:self delegateQueue:dispatch_get_main_queue()];

    }

    2,xmppstream 的方法,

    @property (readwrite, copy) NSString *hostName;

    @property (readwrite, assign) UInt16 hostPort;

    @property (readwrite, copy) XMPPJID *myJID;

    @property (strong, readonly) XMPPJID *remoteJID;

    - (BOOL)connectTo:(XMPPJID *)remoteJID withAddress:(NSData *)remoteAddr error:(NSError **)errPtr;

    - (BOOL)xmppStream:(XMPPStream *)sender didReceiveIQ:(XMPPIQ *)iq;

    - (void)xmppStream:(XMPPStream *)sender didReceiveMessage:(XMPPMessage *)message;

    - (void)xmppStream:(XMPPStream *)sender didReceivePresence:(XMPPPresence *)presence;

    - (void)sendElement:(NSXMLElement *)element andGetReceipt:(XMPPElementReceipt **)receiptPtr;

     

  • 相关阅读:
    Alpha冲刺Day10
    Alpha冲刺Day9
    Alpha冲刺Day8
    Alpha冲刺Day7
    Alpha冲刺Day6
    SDN
    【Alpha
    【Alpha】团队课程展示
    【Alpha】团队项目测试报告与用户反馈
    【Alpha】总结
  • 原文地址:https://www.cnblogs.com/guligei/p/3494193.html
Copyright © 2011-2022 走看看