开发者

Connect and downlaod content with socket in iphone sdk

开发者 https://www.devze.com 2023-03-05 22:02 出处:网络
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:

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消