简体   繁体   English

通过WiFi网络中的URL字符串发送/接收数据

[英]Send/receive data via URL-string in an WiFi network

I have an IOS application where many IOS-devices, much more than seven, shall send data to an iPad via a private WiFi network. 我有一个IOS应用程序,其中许多IOS设备(超过七个)将通过专用WiFi网络将数据发送到iPad。 I want to do this as easy as possible, without security, ie sending the data like this: ´ http://IP_address/ $DATA´ => " http://192.168.1.25/ $09963 KV". 我想在没有安全性的情况下尽可能轻松地执行此操作,即发送如下数据:“ http:// IP_address / $ DATA” =>“ http://192.168.1.25/ $ 09963 KV”。 I know how to send the data this way, but I don´t know how to make the iPad receive the $DATA. 我知道如何以这种方式发送数据,但是我不知道如何使iPad接收$ DATA。 If I have ie 40 senders I hope to read the data into an array and then analyse them as soon as possible... Hope that someone can help me. 如果我有40个发件人,我希望将数据读取到一个数组中,然后尽快对其进行分析……希望有人可以帮助我。

If you planning to send and receive data using your app on multiple device which are on the network following are the options. 如果您计划在网络上的多个设备上使用您的应用发送和接收数据,则可以选择以下选项。

  1. Bonjour API Apple Bonjour API Bonjour API 苹果Bonjour API
  2. NSStream. NSStream。
  3. CFNetwork CF网络

You can also see similar question in stackoverflow Here 你也可以看到类似的问题在计算器这里

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

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