简体   繁体   English

iPhone Web App服务器连接

[英]iPhone web App Server connection

I am developing an iPhone app which need connection to server to fetch huge data at regular interval.So need to know which way is better socket connection or using libXML 我正在开发一个iPhone应用程序,该应用程序需要连接到服务器以定期获取大量数据,因此需要知道哪种方法更好的套接字连接或使用libXML

Thanks 谢谢

libXML isn't a data transfer library, and sockets don't handle XML, so if you are trying to download and process large XML documents, I'd say you need both, not one or the other. libXML不是数据传输库,套接字也不处理XML,因此,如果您尝试下载和处理大型XML文档,我会说您需要两者,而不是一个或另一个。

Also, I'd be extremely wary of transferring "huge" data sets directly to an iPhone. 另外,我会非常警惕直接将“巨大”数据集传输到iPhone。 At the very least, I'd use compression and give the user some warnings before transferring data over a 3G link. 至少,在通过3G链路传输数据之前,我会使用压缩并向用户发出一些警告。

庞大的数据意味着什么。.大小将是多少。\\ n更好首先,您使用最大的数据进行测试,这很有可能来自服务器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM