Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
PingOptions.cs
Go to the documentation of this file.
2
3public class PingOptions
4{
5 private int _ttl;
6
7 private bool _dontFragment;
8
9 public int Ttl
10 {
11 get
12 {
13 return _ttl;
14 }
15 set
16 {
17 if (value <= 0)
18 {
19 throw new ArgumentOutOfRangeException("value");
20 }
21 _ttl = value;
22 }
23 }
24
25 public bool DontFragment
26 {
27 get
28 {
29 return _dontFragment;
30 }
31 set
32 {
34 }
35 }
36
37 public PingOptions()
38 {
39 _ttl = 128;
40 }
41
42 public PingOptions(int ttl, bool dontFragment)
43 {
44 if (ttl <= 0)
45 {
46 throw new ArgumentOutOfRangeException("ttl");
47 }
48 _ttl = ttl;
49 _dontFragment = dontFragment;
50 }
51}
PingOptions(int ttl, bool dontFragment)