iPhone数据传输使用CFReadStream & CFWriteStream(你好)
我能够使用 iPhone 模拟器成功地将高达 20 KB 的数据从一台 Mac 发送到另一台 Mac。但是,对于大于该数据的数据,它无法发送。即使分段数据也不起作用。帮助...
I am able to send data upto 20 KB from one Mac to another using iPhone Simulators successfully.However for data larger than that it is not able to send.Even fragmenting data doesnot work. Help...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你的问题有点晦涩难懂,无法得到充分回答。如果没有您的任何代码、输出或示例,我们就没有太多进展。
不过,对于不同 Mac/iPhone 设备之间的网络连接,存在一个很棒的教程,可在此处获取:
http://mobileorchard.com/tutorial-networking-and-bonjour-on-iphone/
如果您有兴趣学习如何正确连接两个设备,这是一个很好的开始。该项目提供了许多很棒的类,它们在标准 C 套接字函数之上添加了一个薄薄的 Objective-C 层,并且可以让您的网络问题很快消失。
Your question is a bit obscure to be answered adequately. Without any of your code, output, or examples, we don't have a lot to go on.
A great tutorial exists, however, for networking between different Mac/iPhone devices, and is available here:
http://mobileorchard.com/tutorial-networking-and-bonjour-on-iphone/
If you're interested in learning how to properly network two devices, it's a fantastic start. The project provides a lot of great classes that add a thin Objective-C layer on top of the standard C socket functions, and can make your networking headaches go away very quickly.