GCDAsyncUdpSocket本身提供的:
- (void)sendData:(NSData *)data toHost:(NSString *)host port:(uint16_t)port withTimeout:(NSTimeInterval)timeout tag:(long)tag
方法写入参数timeout默认是不会根据填写的参数来超时的,需要在这个方法的
GCDAs...
分类:
其他好文 时间:
2015-01-13 17:52:31
阅读次数:
707
1.udpclient的初始化udpClient=[[GCDAsyncUdpSocket alloc] initWithDelegate:self delegateQueue:mainQueue]; udpClient.delegate=self; NSError *err; BOOL bre...
分类:
其他好文 时间:
2014-08-13 18:18:36
阅读次数:
276