开发者

how to access a shared folder on a windows machine with iphone SDK?

开发者 https://www.devze.com 2022-12-15 02:52 出处:网络
I was wondering if anyone could help point me in 开发者_如何转开发the right direction if I am trying to write the contents of a file from a shared folder on a windows machine to an array on the iphone

I was wondering if anyone could help point me in 开发者_如何转开发the right direction if I am trying to write the contents of a file from a shared folder on a windows machine to an array on the iphone over a wifi connection.

could I do it with initWithContentsOfURL??

thanks for the help


initWithContentsOfUrl reads files produced by the writeToURL:atomically: method. These two methods require an HTTP server to work, so you would need to setup IIS or Apache on the windows box.

What you want is an iPhone samba client.

Samba is an open source implementation of networking protocols to share files and printers between Unix computers and Windows.

I did some searches but didn't find anything worth linking. Someone else chime in here...


I just started on building a simple windows network share library for the iOS: https://github.com/38leinaD/tango

At the moment it only allows to list a directory, but i plan to extend it to at least reading an writing files. But i don't know when i will find the motivation. SMB/CIFS is a very dirty protocol and not much fun to work with...

0

精彩评论

暂无评论...
验证码 换一张
取 消