Home |
Function xn_snmp_daemon |
Function xn_snmp_daemonThe SNMP daemon. int xn_snmp_daemon(BYTE * buffer, int buf_len); ParametersbufferThe buffer used to format data when sending a response to an SNMP request. If it is set to 0, a DCU will be allocated for buffer space. Use a 1514 byte buffer to be able to process any SNMP request. buf_lenSize of the buffer in bytes. return valueOn failure, the function returns SOCKET_ERROR and xn_getlasterror and xn_geterror_string return the error value. Error Codes further describes each error. If the function succeeds, it never returns. This function opens the SNMP port and handles incoming SNMP requests. SNMP messages are passed via UDP to the well defined port number SNMPPORT 161. The daemon loops forever processing requests. The function only returns when an error is detected. xn_snmp_daemon will allocate one UDP socket. xn_snmp_config must be called prior to calling xn_snmp_daemon.
|