Connect to file share on an Airport Extreme from iPad/iPhone
I need to connect to a hard drive or thumb drive that is plugged into an Airport Extreme. I assume you connect to it by using NSURLConnection, but I don't know how to format the url.
I can access it from the mac by connecting to the server smb://serveraddress.local etc... and entering user/pwd. I need to be able to access this using the iPad and stream video from it and open files.
If s开发者_如何转开发omeone can point me in the right direction I would really appreciate it.
Thanks!
You are trying to connect AFP or SMB shared volumes, NSURLConnection can not help you.
Since there is no any SDK for you, you need to write your own AFP or SMB client.
Here is an Open Source AFP client: afpfs-ng
but I don't think you can run it on iPhone as easy as copy&past.
精彩评论