Hi I want to use socket programming for downlaoding HTML from the server. Any body can give suc开发者_开发问答h a sample code.
The framework you're looking for is here: http://developer.apple.com/library/ios/#documentation/Cocoa/Conceptual/URLLoadingSystem/URLLoadingSystem.html
Sockets would be needless headache in this case.
-(void)stream:(NSStream *)stream handleEvent:(NSStreamEvent)eventCode
works for me.
精彩评论