摘要: 首先 下载源代码倒入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 阅读全文
posted @ 2012-10-28 14:47 不曾拥有 阅读(13493) 评论(1) 推荐(0) 编辑