- (void)socket:(GCDAsyncSocket *)sock didReadData委托没有被调用?

时间:2016-10-05 06:59:24

标签: objective-c xmppframework

我在不使用Xmpp的情况下使用framework pods,但在发送数据包后委托didReadData未调用。

-(void)setupStream 
{
    xmppStream = [[XMPPStream alloc] init];

    [xmppStream addDelegate:self delegateQueue:dispatch_get_main_queue()];
    xmppStream.startTLSPolicy = XMPPStreamStartTLSPolicyRequired;

    [xmppStream setHostName:@"37.247.116.191"];

    [xmppStream setHostPort:5222];

}

0 个答案:

没有答案