All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface Snmp.SnmpClient

public interface interface SnmpClient
This is the interface implemented by client programs that wish to use callback, authentication, and debugging functions of the API. This interface is implemented by the SnmpAPI class, to provide default behavior, i.e. no callbacks, authentication based on comparing community strings, and printing debugging output to stdout.

See Also:
SnmpAPI

Method Index

 o authenticate(SnmpPDU, String)
This function needs to be supplied by the user of the API to change default authentication.
 o callback(SnmpSession, SnmpPDU, int)
This function needs to be supplied by the user of the API to use callbacks.
 o debugPrint(String)
This function needs to be supplied by the user of the API to obtain a means of manipulating debugging output.

Methods

 o authenticate
 public abstract boolean authenticate(SnmpPDU pdu,
                                      String community)
This function needs to be supplied by the user of the API to change default authentication. If not, comparison of community strings will done automatically in SnmpAPI class. If this returns false, the PDU will be dropped at the receiver.

See Also:
authenticate
 o callback
 public abstract boolean callback(SnmpSession session,
                                  SnmpPDU pdu,
                                  int requestID)
This function needs to be supplied by the user of the API to use callbacks. If not, a null callback in SnmpAPI class will be used. If it returns true, no further processing will be done at the receiver, e.g. won't be in response queue. The community string argument is the session community string.

See Also:
callback
 o debugPrint
 public abstract void debugPrint(String debugOutput)
This function needs to be supplied by the user of the API to obtain a means of manipulating debugging output. If not, the debugging output will be printed to stdout in SnmpAPI class. System.err.println will still be used for errors in either case.

See Also:
debugPrint

All Packages  Class Hierarchy  This Package  Previous  Next  Index