diff --git a/SNMPInterface.cs b/SNMPInterface.cs index 75071ef..472ad86 100644 --- a/SNMPInterface.cs +++ b/SNMPInterface.cs @@ -249,14 +249,10 @@ namespace ln.snmp results.Add(next); } return results; - } else if (SnmpVersion == SnmpVersion.V2c) + } else { return snmpGetBulk(objectIdentifier); } - else - { - throw new NotImplementedException(); - } } public List snmpWalk(string objectIdentifier) { diff --git a/endpoint/SNMPEndpoint.cs b/endpoint/SNMPEndpoint.cs index bfb2a19..68fc198 100644 --- a/endpoint/SNMPEndpoint.cs +++ b/endpoint/SNMPEndpoint.cs @@ -25,6 +25,11 @@ namespace ln.snmp.endpoint SNMPEngine.RegisterEndpoint(this); } + public void Close() + { + Dispose(); + } + public virtual void Send(SnmpMessage message) { //message.MessageID = SNMPEngine.NextMessageID;