Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
PingOptions.cs
Go to the documentation of this file.
1
namespace
System.Net.NetworkInformation
;
2
3
public
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
{
33
_dontFragment
=
value
;
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
}
System.ArgumentOutOfRangeException
Definition
ArgumentOutOfRangeException.cs:9
System.Net.NetworkInformation.PingOptions.Ttl
int Ttl
Definition
PingOptions.cs:10
System.Net.NetworkInformation.PingOptions.DontFragment
bool DontFragment
Definition
PingOptions.cs:26
System.Net.NetworkInformation.PingOptions._dontFragment
bool _dontFragment
Definition
PingOptions.cs:7
System.Net.NetworkInformation.PingOptions.PingOptions
PingOptions(int ttl, bool dontFragment)
Definition
PingOptions.cs:42
System.Net.NetworkInformation.PingOptions._ttl
int _ttl
Definition
PingOptions.cs:5
System.Net.NetworkInformation.PingOptions.PingOptions
PingOptions()
Definition
PingOptions.cs:37
System.Net.NetworkInformation.PingOptions
Definition
PingOptions.cs:4
System.Net.NetworkInformation
Definition
DuplicateAddressDetectionState.cs:1
System.ExceptionArgument.value
@ value
source
System.Net.Ping
System.Net.NetworkInformation
PingOptions.cs
Generated by
1.10.0