How to connect from an iOS application to local WIFI and transfer information / photos

I have not seen anyone ask about this, so I ask about how to transfer information / images via WIFI in the iOS app (Xcode).

For example: if I view photos using a camera with WIFI How can I go and see photos of an iPhone?

For example, like this video:

http://www.youtube.com/watch?v=rJSw48FhXWo

Is it possible to access it?

thanks

+4
source share
1 answer

You need to use Scrip prgogramming with Bonjour. You can even find sample code to connect to a user on the same network as Wi-Fi. You need to use CFReadStream, CFWriteStream and NSNetService. You can also check this code, see It serverless daemon. Link here .. XMPP example

For the file transfer protocol, simply install the TurnSocket Extension. Further XMPP extensions are here at this link: -

XMPP Extensions

+2
source

Source: https://habr.com/ru/post/1498387/


All Articles