📄 readme
字号:
One of the goals of the Net-SNMP v5 development line, is to try andclarify the distinction between the "public" library API, and routinesthat are regarded as being more "internal" to the library. This doesn't mean that application writers are discouraged frommaking use of such internal routines. There is a strong feelingwithin the development team that as much as possible of the libraryshould be made externally visible, to support writing as wide arange of applications as possible. To that end, most routineswill be declared within an installed header file, rather thanprivately within the library code files themselves. The public/internal categorisation is rather concerned with issuesof documentation, stability, and ease of programming. The publicAPI routines have been selected as those covering the more commonrequirements (e.g. creating SNMP requests, sending them to other SNMPagents, and interpreting the results), together with certain supportingactivities (e.g. run-time configuration). The intention is that these routines should be properly documented,and remain relatively stable. We will attempt to avoid changing theprofile of these interfaces, and would normally provide some mechanismto retain backward compatability if need be. On the other hand, the internal API routines are regarded as justthat - "internal" - so may legitimately be changed without providingany compatability mechanism. You are perfectly free to make use ofthese routines, but be aware that you do so "at your own risk".[This statement is in no way intended to challenge or amend the status of the disclaimers in the top-level 'COPYING' file, which remain unchanged as the legal basis for using this code] There are (currently) eight main "public API" header files, relatingto various areas of SNMP programming, plus a combined "all-in-one"header file (net-snmp-includes.h). Currently these simply include the relevant library header filesfollowing the UCD-SNMP organisation. However, the intention is forfuture releases to declare the public API calls directly within thesetop-level header files, and use the 'library/*.h' files for the moreinternal calls. (i.e. those that are more likely to change over time). Until this process can be started, the best approximation to the"public API" list is probably those routines that are documentedin manual pages. Apologies for any confusion, but hopefully thisprocess will result in a clearer end result than at present.Applications writers are encouraged to start #including the new headerfiles as soon as possible - either individually, or using the combinedwrapper file. Hopefully, with only a handful of top-level files, itwill be reasonably clear which file(s) might be appropriate for anyparticular programming requirement. One final disclaimer: The above description represents my ownpersonal aims and understanding of the likely development of thelibrary API. While I have every confidence in having the support ofthe other developers (or being able to persuade them of the benefitsof this approach!), it may turn out that things actually take a differentroute. Anyone wishing to influence the organisation of the eventuallibrary API is encouraged to subscribe to the net-snmp-coders mailinglist, and contribute to the discussions there.Dave ShieldFebruary 2002
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -