GCDAsyncSocketManager icon indicating copy to clipboard operation
GCDAsyncSocketManager copied to clipboard

GCDAsyncSocketManager provides qiuick-to-use GCDAsyncSocket to build socket,it contains connect,disconnect,reconnect,beat,custom request 基于GCDAsyncSocketManager快速搭建socket,它包含了建连、断开、重...

Results 5 GCDAsyncSocketManager issues
Sort by recently updated
recently updated
newest added

#pragma mark socket已经连接失败 - (void)socketDidDisconnect:(GCDAsyncSocket *)clientSocket withError:(NSError *)err{ NSLog(@"与服务器断开连接%@",err); self.connectStatus = -1; [self.beatTimer invalidate]; self.beatTimer = nil; [self socketDidDisconectBeginSendReconnect:@"ping"]; } //断线重连 - (void)socketDidDisconectBeginSendReconnect:(NSString *)reconnectBody { NSLog(@"断线心跳"); self.reconnectTimer = [NSTimer scheduledTimerWithTimeInterval:2...

``` self.socket = [[GCDAsyncSocket alloc] initWithDelegate:delegate delegateQueue:dispatch_get_main_queue()]; ```

代码中 [[GCDAsyncSocket alloc] initWithDelegate:delegate delegateQueue:dispatch_get_main_queue()]; 使用main_queue 导致回调在主线程, 这样不好吧...给一下 你项目中实际怎么处理的啊

I run a server on my desktop(nc- lk 2000),the client on the iPad. The server can get what the client send,after I cut off my network and then reconnected,log in...

question