How to connect to network share drive programmatically? - ios

I would like to write a program on iPad to connect network share drive (similar to FileBrowser application). However, I cannot find many resources and sample code on the Web. Does anyone know how to do it? Any website for reference? Thanks so much!

Connecting to an SMB shared drive would be the same as connecting to any SMB server. Now I've googled a bit and found that SMB was developed by Windows, and not given free, but that it has been successfully reversed engineered and that it has been ported to Linux, Unix, whatever by the name Samba.
I dug a bit deeper and easily found this link: Windows Filesharing library for iOS. It provides a link to an iOS framework which enables you to connect to a Samba/SMB drive.
Since I never tried to connect to a SMB/Samba server, I don't know if the framework will work, I've never tested it. But by copying some source files to your own project you normally should get it working.
Note: Check the license of any third-party framework you use.

Related

Programmatically browse iOS file system from mac

How can I browse an iOS file system (e.g. iPhone) that is connected via USB to a mac?
I know it is possible because some programs are doing it (e.g. iexplorer or even iTunes itself).
Here are some of the solutions I found:
Jailbreaking. That is out of the question for me for obvious reasons
downloading and using third party software like iexplorer. I do not want to do this, because this is closed source software, and I do not know if I can trust it.
I tried to look into github for open source project that would do something like that, so that I can get inspiration. But I didn't find any project doing something like that.
You can have a look at libmobileidevice suite: https://github.com/libimobiledevice
Specifically ifuse: https://github.com/libimobiledevice/ifuse

How to keep samba connection with TOSMBClient Library

I'm following TOSMBClient library link:TOSMBClient to share file from pc to my iPhone,This library is working to connect and copy file to my iPhone. But it takes very long time to connect to host and every time when copy file is done samba will disconnect. I want to keep samba connection.
Have anyone have idea or used to work with TOSMBClient library please help or suggest idea.
I'm the original developer of TOSMBClient. :)
The library is a thin Objective-C wrapper around another library called libdsm. The process of connecting to a host is at libdsm's level, so if your particular connection is slow, there's not a lot that can be done on the TOSMBClient level. It might be worth reporting an issue on libdsm's Github repo describing your hardware setup.
The connection dropping after a file copy operation is complete is curious. I can't be sure where that issue might be happening. Again, more information would be required. A complete set of steps to reproduce would be great. If you get the chance, feel free to file another issue on the GitHub!

WebDAV client Library for iOS and Mac OS

I would like to be able to access a WebDAV server from my iOS 7+ and Mac OS app. Does anyone know to a good and reliable library to support this?
I have been searching for a library quit a while now but so far I hadn't any success. Of course there are several threads about this topic (here on SO and elsewhere) but most of theme are quite out dated.
DZWebDAVClient looks quite promising. But it is based on an older version of AFNetworking has not been update for quite a while. I have not been able to find any working example and was not able to get a connection to my own WebDAV server.
The same is true for wtclient and ConnectionKit
Has someone used a WebDAV client library in production? Any recommendations what lib can be used or which one is not good?
Please look at GCDWebServer
it includes webdav library for MAC OSX and IOS

Connecting to sFTP from within an iOS App

I'm new to Objective C and Xcode, but was wondering how to connect to a SFTP within my application. I've successfully connected to FTPs before, but was hoping to keep more secure in the future. When connecting with a regular computer you need a special SFTP client, so I wasn't sure what steps I'd have to take to connect within an iOS App.
Also, what are your opinions of SSH FTPs Vs. SFTPs?
There are plenty of open source libraries like NMSSH or DLSFTPClient. Please, don't use proprietary components, support open source.
Your best bet is to download a library and put that into your app. I would recommend Chilkat. He has wrote a lot of stuff for sftp.
Good luck.
look at some of these (http://www.example-code.com/ios/sftp.asp)

Connecting iOS with Azure Cloud

I'm sorry, I don't get this Azure Cloud thing working for iOS.
Has anyone had experiences with this so far? I don't get any useful results in google...
Up to now I downloaded the Azure Toolkit for iOS on https://github.com/microsoft-dpe/wa-toolkit-ios and didn't really get it working. On every video/tutorial I found, they referenced to another github site which is now 404 error. I finally found the referenced project on another link but didn't get this working for me either.
For the Azure Toolkit on https://github.com/microsoft-dpe/wa-toolkit-ios I didn't find where to put my namespace, user and key (so I got an error like "hostname not found").
For the "other" (older version?) Toolkit there are some "directory not found" errors while building.
Any help? I don't believe that there is nobody out there having connected iOS with Azure successfully!
Using the latest version from Github, you should open the watoolkitios-samples.xcodeproj in Xcode. Then, I think the README.md is a bit out of date, you need to open watoolkitios-samples.plist in the "Supporting Files" folder in order to configure the client application. You have a number of configuration types to choose from, the simplest is "Direct", although probably not recommended for production use.
This library offers a rather spohisticated set of Web Services that you can call directly from the iOS client. I would try it out before starting building services from scratch!

Resources