forked from rqx110/SnmpSharpNet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ITarget.cs
69 lines (68 loc) · 1.43 KB
/
ITarget.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
using System;
using System.Collections.Generic;
using System.Text;
namespace SnmpSharpNet
{
/// <summary>
/// SNMP target interface
/// </summary>
public interface ITarget
{
/// <summary>
/// Prepare packet for transmission by filling target specific information in the packet.
/// </summary>
/// <param name="packet">SNMP packet class for the required version</param>
/// <returns>True if packet values are correctly set, otherwise false.</returns>
bool PreparePacketForTransmission(SnmpPacket packet);
/// <summary>
/// Validate received reply
/// </summary>
/// <param name="packet">Received SNMP packet</param>
/// <returns>True if packet is validated, otherwise false</returns>
bool ValidateReceivedPacket(SnmpPacket packet);
/// <summary>
/// Get version of SNMP protocol this target supports
/// </summary>
SnmpVersion Version
{
get;
set;
}
/// <summary>
/// Timeout in milliseconds for the target
/// </summary>
int Timeout
{
get;
set;
}
/// <summary>
/// Number of retries for the target
/// </summary>
int Retry
{
get;
set;
}
/// <summary>
/// Target IP address
/// </summary>
IpAddress Address
{
get;
}
/// <summary>
/// Target port number
/// </summary>
int Port
{
get;
set;
}
/// <summary>
/// Check validity of the target information.
/// </summary>
/// <returns>True if valid, otherwise false.</returns>
bool Valid();
}
}