[英]How to connect iPhone to Windows PC through IP address in iOS?
I am doing one demo for connecting iPhone to Windows PC for sending files and text to PC from iOS Device. 我正在做一个演示,用于将iPhone连接到Windows PC,以便从iOS设备向PC发送文件和文本。 Can anyone give me a solution how can I approach it? 谁能给我一个解决方案,我该如何解决?
You can start to study the socket connection. 您可以开始研究套接字连接。 With a TCP connection you can send and receive data to / from PC. 通过TCP连接,您可以向PC发送数据或从PC接收数据。 Another way (to avoid the TCP connection) is to use UDP message: in this case you should write a UDP listener in your iOS App that listen incoming message on a specific udp port. 另一种方法(避免TCP连接)是使用UDP消息:在这种情况下,您应该在iOS应用中编写一个UDP侦听器,以侦听特定udp端口上的传入消息。
look at his link: iPhone TCP/IP Socket Server/Client Program 看一下他的链接: iPhone TCP / IP套接字服务器/客户端程序
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.