Repository navigation
Expand file tree
/
Copy pathTracerouteOptions.cs
More file actions
57 lines (50 loc) · 1.99 KB
/
Copy pathTracerouteOptions.cs
File metadata and controls
57 lines (50 loc) · 1.99 KB
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
namespace NETworkManager.Models.Network;
/// <summary>
/// Class contains the options for the traceroute.
/// </summary>
public class TracerouteOptions
{
/// <summary>
/// Create an instance of <see cref="TracerouteOptions" /> with parameters.
/// </summary>
/// <param name="timeout">Timeout in milliseconds after which a ping is considered lost.</param>
/// <param name="bufferSize">Size of the buffer used in the ping in bytes.</param>
/// <param name="maximumHops">Maximum number of hops between the local and remote computer.</param>
/// <param name="dontFragment">Do not fragment the ping packet.</param>
/// <param name="resolveHostname">Resolve the hostname for an IP address.</param>
/// <param name="checkIPApiIPGeolocation">Check IP geolocation via ip-api.com.</param>
public TracerouteOptions(int timeout, int bufferSize, int maximumHops, bool dontFragment, bool resolveHostname,
bool checkIPApiIPGeolocation)
{
Timeout = timeout;
BufferSize = bufferSize;
MaximumHops = maximumHops;
DontFragment = dontFragment;
ResolveHostname = resolveHostname;
CheckIPApiIPGeolocation = checkIPApiIPGeolocation;
}
/// <summary>
/// Timeout in milliseconds after which a ping is considered lost.
/// </summary>
public int Timeout { get; }
/// <summary>
/// Size of the buffer used in the ping in bytes.
/// </summary>
public int BufferSize { get; }
/// <summary>
/// Maximum number of hops between the local and remote computer.
/// </summary>
public int MaximumHops { get; }
/// <summary>
/// Do not fragment the ping packet.
/// </summary>
public bool DontFragment { get; }
/// <summary>
/// Resolve the hostname for an IP address.
/// </summary>
public bool ResolveHostname { get; }
/// <summary>
/// Check IP geolocation via ip-api.com.
/// </summary>
public bool CheckIPApiIPGeolocation { get; }
}