摘要:
首先 下载源代码倒入runloop文件夹下的 四个文件即可AsyncSocket *socket=[[AsyncSocketalloc]initWithDelegate:self];NSError *error;[socket connectToHost:h onPort:p withTimeout:-1error:&error ];然后实现一些Delegate方法A:- (void)onSocket:(AsyncSocket *)sock didConnectToHost:(NSString *)host port:(UInt16)port;B:- (void)onSocketDid 阅读全文