Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ DnsEndPoint() [2/2]

System.Net.DnsEndPoint.DnsEndPoint ( string host,
int port,
AddressFamily addressFamily )
inline

Definition at line 25 of file DnsEndPoint.cs.

26 {
27 if (host == null)
28 {
29 throw new ArgumentNullException("host");
30 }
31 if (string.IsNullOrEmpty(host))
32 {
34 }
35 if (port < 0 || port > 65535)
36 {
37 throw new ArgumentOutOfRangeException("port");
38 }
39 if (addressFamily != AddressFamily.InterNetwork && addressFamily != AddressFamily.InterNetworkV6 && addressFamily != 0)
40 {
42 }
43 _host = host;
44 _port = port;
45 _family = addressFamily;
46 }
readonly string _host
Definition DnsEndPoint.cs:8
readonly AddressFamily _family
static string net_sockets_invalid_optionValue_all
Definition SR.cs:24
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string net_emptystringcall
Definition SR.cs:14
Definition SR.cs:7

References System.Net.DnsEndPoint._family, System.Net.DnsEndPoint._host, System.Net.DnsEndPoint._port, System.SR.Format(), System.SR.net_emptystringcall, and System.SR.net_sockets_invalid_optionValue_all.