Export files via WIFI to a computer from the iPhone application -

I hope someone can point me in the right direction since I have no prior experience with network programming. I need to give the user the ability to export the file to his computer via WIFI (for example, an FTP server), like some applications, such as AirSharing, by displaying the web address (for example, 192.168.3.1:8080) that the user simply types into his web browser for accessing files.

But I can not find anything on the Internet that tells me how to implement this. I monitored the code to publish a network service using Apple NSNetSerice and CFNetService Programming Guide, and although it builds and runs, it doesn’t appear anywhere from my Mac, and I don’t know how to specify a web address. I do not know TCP or what it does.

In addition, none of Apple has provided sample projects (WiTap, BonjourWeb, Cryptoblahblah), it seems to help do what I want (and they are really complicated)

Does anyone know if I will go the right way or if there are any tips that I could follow? I would be happy to post some code examples if you want.

Thank you very much in advance.

+4
source share
2 answers

Yes. You can do this with this sample code.

IPhoneHttpServer Project

Note. Feel free to take your risks, but feel free to send me an email if you have any questions. vodkhang@gmail.com or visit my blog at: vodkhang.com

+2
source

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


All Articles