tfAddCommunityTableEntry
Table of Contents >> SNMP Programmer's Reference
| #include <trapi.h> |
| int tfAddCommunityTableEntry | ( |
| ttUser32Bit flags, | |
| ttSnmpCommunityTablePtr comEntryPtr | |
| ); |
Function Description
Add a community string to the list of communities.
Parameters
- flags
- Not used.
- comEntryPtr
- Pointer to a tsSnmpCommunityTable, will be inserted in the community table after validation. The user must allocate and fill this struct before use.
Returns
- TM_ENOERROR
- Success.
- TM_COMMUNITY_NOT_PRINTABLE
- Failure, community contains unprintable characters.
- TM_USER_NOT_PRINTABLE
- Failure, use name contains unprintable characters.