Skip to content
/ ajSMB Public

An Objective-C wrapper for libsmbclient (samba.org) library. Forked from kolyvan/kxsmb.

License

Notifications You must be signed in to change notification settings

jiangts/ajSMB

Repository files navigation

KxSMB is objective-c wrapper for libsmbclient lib.

For now KxSMB supports a limited set of SMB operations. It mostly was designed for browsing local net and retrieving files.

Build instructions:

First you need download, configure and build samba. For this open console and type in

cd kxsmb	
rake

Usage

  1. Drop files from kxsmb/libs folder in your project.
  2. Add libs: libz.dylib, libresolv.dylib and libiconv.dylib.

Fetching a folder content:

NSArray *items = [[KxSMBProvider sharedSmbProvider] fetchAtPath: @"smb://server/share/"];

Reading a file:

KxSMBItemFile *file = [[KxSMBProvider sharedSmbProvider] fetchAtPath: @"smb://server/share/file"];
NSData *data = [file readDataToEndOfFile];

Look at kxSMBSample demo project as example of using.

Requirements

at least iOS 5.0 and Xcode 4.5.0

License

kxsmb is open source and covered by a standard 2-clause BSD license. See the LICENSE file for more info.

Samba is Free Software licensed under the GNU General Public License.

Feedback

Tweet me — @kolyvan_ru.

About

An Objective-C wrapper for libsmbclient (samba.org) library. Forked from kolyvan/kxsmb.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages