5

I'm writing an iPhone/iPad program where I can capture an image, draw something on the image(e.g a line), and send it to a PC (e.g WinXP) in real time. To send the image data to a PC, I'm considering bluetooth and wifi but here's what I found:

  1. Bluetooth - IMPOSSIBLE, no API
  2. Wifi TCP/IP - (i) Bonjour NSStream(XCode) and GCDAsyncSocket(C++) (ii) Bonjour NSStream(XCode) and Bonjour Windows (C++)
  3. Wifi UDP - Bonjour NSStream(XCode) and MFC's CAsyncSocket(C++)

Is the above correct?

4

1 回答 1

0

恕我直言:在您的 PC 上使用 TCP 服务器和 TCP 客户端应用程序(FastSocket https://github.com/dreese/fast-socket)并通过 WiFi(LAN 或 WLAN),您应该能够通过网络。另外,请参阅本教程http://www.raywenderlich.com/3932/how-to-create-a-socket-based-iphone-app-and-server

于 2013-08-05T19:46:04.390 回答