简体   繁体   中英

Does iOS support file operations via SMB?

Does iOS (or iPhone OS) support file operations via SMB network shares? If so, are there any documents about how to do this?

尚未测试,但这可能会有所帮助:http: //38leinad.wordpress.com/2011/03/23/windows-filesharing-library-for-ios/

我以为我在macbook和我的iPhone模拟器之间工作但是它从不适用于在Windows机器上共享的文件夹..请参考我发布的单独问题 - 使用NSNetService类将SMB tcp ip连接到Windows上共享的文件夹机器 - 我采取的步骤......

Not sure about SMB, but I was able to read/write files on a jailbroken IPad using SFTP. OS versions 4.1, 4.2, 4.3.

On a side note, I think that the question needs a bit of clarification - what exactly are you trying to do, and whether you're working with a regular or a jailbroken device. Answers may vary greatly one knowing these things.

I used libsmbclient from samba package for SMB operations on iOS. You can look on my project https://github.com/kolyvan/kxsmb (objective-c wrapper on libsmbclient). For now it supports a limited set of SMB operations. It mostly was designed for browsing local net and retrieving files from SMB shares.

iOS does not have any APIs to work with SMB. However, SMB is currently documented by Microsoft and implementing it is not impossible (although not easy too). I've created a freeware project which contains most of what you need to handle SMB. See

https://sourceforge.net/projects/smb4ios/

It does not use Samba or any other heavy-weight libraries. Works mostly for printers, but with what's already there it's easy to add support for file handling or whatever.

I don't care about GPL stuff, you can just reuse the code without concerns for that. Just check if the NTLM library I used has the correct license for you (or implement your own NTLM).

您也可以参考我的经验,我设法为iOS实现SMB客户端:iOS上的SMB / samba支持?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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