From 9a5acf3cbd7fce3a99aefb3d2f4582c4c572dc73 Mon Sep 17 00:00:00 2001 From: Harald Wolff Date: Fri, 15 Mar 2019 07:43:15 +0100 Subject: [PATCH] WIP --- SNMPInterface.cs | 6 +----- endpoint/SNMPEndpoint.cs | 5 +++++ 2 files changed, 6 insertions(+), 5 deletions(-) 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;