Home |
Function xn_snmp_config_trap |
Function xn_snmp_config_trapFunction xn_snmp_config_trap adds or deletes an SNMP trap manager to which traps should be sent. int xn_snmp_config_trap(BYTE * ip_addr, int add); Parametersip_addrIP address in network byte order of the trap manager. addSet to TRUE to add the manager or FALSE to delete the manager. return valueReturns 0 if successful, otherwise SOCKET_ERROR. If an error occurred, call xn_getlasterror and xn_geterror_string to return the error value. In addition to the error values listed below, all error values generated by socket may also be set. Error Codes further describes each error. Possible values for this function are:
The table of managers is set up initially by calling xn_snmp_config.
|