SNMP Library for iPhone

Are there open source libraries for running SNMP GET / SET using Objective-C / Cocoa Touch (for IPhone)?

+4
source share
4 answers

Although Objective-C (what I know) does not have SNMP implementations. There are in C and C ++.

I have had success using snmp ++ v2.8a . Just drop the .h and. cpp required for static libsnmp ++. A into your iphone x-code project. And make the necessary settings to build it. I had to add: "-D_XPG4_EXTENDED -DGCC -DLINUX" to the project settings โ€œOther C ++ flagsโ€ and make some changes to the files. Then, any file that you use C ++ objects from, rename from .m to .mm to tell X-Code, the file contains a mixture of Objective-C and C ++.

+3
source

In my opinion, the C / C ++ package called Net-SNMP (has nothing to do with .NET) is the best implementation of the SNMP library for a third-party manager (client) and agent (server). I looked at them a lot and used them a lot, and Net-SNMP is the best of them. Open source.

+2
source

I spent some time creating one of them for the project.

there is not for obj-c, or at least it wasnโ€™t when I looked last summer. there is a bunch of open source in c and C #, which are a good source place for a port (or re-implementation).

+1
source

I have never heard of one thing, and the only thing I find on Google is โ€œ IP * Works! โ€, But it seems to be a Mac environment (and may not work on the iPhone if it is not compiled as an .a file).

Itโ€™s best to make your own. http://cocoabuilder.com has a couple emails in its archives about people requesting SNMP libraries, but no replies have been received.

0
source

All Articles