http://www.cocoachina.com/bbs/read.php?tid=56126&page=1
http://www.cocoachina.com/bbs/read.php?tid=25118&page=1
已经发现错在哪了,汗,怀疑lz是不是没测试过上传,委托方法的名字写错了,- (void)compar:(NSStream *)aStream handleEvent:(NSStreamEvent)eventCode,应该写成- (void)stream:(NSStream *)aStream handleEvent:(NSStreamEvent)eventCode,希望以后有人下这个DEMO的时候注意一下