35 references to Unspecified
System.Net.NameResolution (28)
System\Net\Dns.cs (28)
52
IPHostEntry ipHostEntry = GetHostEntryCore(address, AddressFamily.
Unspecified
);
59
GetHostEntry(hostNameOrAddress, AddressFamily.
Unspecified
);
65
/// <param name="family">The address family for which IPs should be retrieved. If <see cref="AddressFamily.
Unspecified
"/>, retrieve all IPs regardless of address family.</param>
95
GetHostEntryAsync(hostNameOrAddress, AddressFamily.
Unspecified
, CancellationToken.None);
107
GetHostEntryAsync(hostNameOrAddress, AddressFamily.
Unspecified
, cancellationToken);
113
/// <param name="family">The address family for which IPs should be retrieved. If <see cref="AddressFamily.
Unspecified
"/>, retrieve all IPs regardless of address family.</param>
167
IPHostEntry ipHostEntry = GetHostEntryCore((IPAddress)s, AddressFamily.
Unspecified
, activity);
189
=> GetHostAddresses(hostNameOrAddress, AddressFamily.
Unspecified
);
195
/// <param name="family">The address family for which IPs should be retrieved. If <see cref="AddressFamily.
Unspecified
"/>, retrieve all IPs regardless of address family.</param>
213
addresses = (family == AddressFamily.
Unspecified
|| address.AddressFamily == family) ? new IPAddress[] { address } : Array.Empty<IPAddress>();
225
(Task<IPAddress[]>)GetHostEntryOrAddressesCoreAsync(hostNameOrAddress, justReturnParsedIp: true, throwOnIIPAny: true, justAddresses: true, AddressFamily.
Unspecified
, CancellationToken.None);
237
(Task<IPAddress[]>)GetHostEntryOrAddressesCoreAsync(hostNameOrAddress, justReturnParsedIp: true, throwOnIIPAny: true, justAddresses: true, AddressFamily.
Unspecified
, cancellationToken);
243
/// <param name="family">The address family for which IPs should be retrieved. If <see cref="AddressFamily.
Unspecified
"/>, retrieve all IPs regardless of address family.</param>
274
return GetHostEntryCore(hostName, AddressFamily.
Unspecified
);
279
TaskToAsyncResult.Begin(GetHostEntryCoreAsync(hostName, justReturnParsedIp: true, throwOnIIPAny: true, AddressFamily.
Unspecified
, CancellationToken.None), requestCallback, stateObject);
298
IPHostEntry ipHostEntry = GetHostEntryCore(IPAddress.Parse(address), AddressFamily.
Unspecified
);
311
IPHostEntry ipHostEntry = GetHostEntryCore(address, AddressFamily.
Unspecified
);
329
ipHostEntry = GetHostEntryCore(address, AddressFamily.
Unspecified
);
339
ipHostEntry = GetHostEntryCore(hostName, AddressFamily.
Unspecified
);
348
TaskToAsyncResult.Begin(GetHostEntryCoreAsync(hostName, justReturnParsedIp: false, throwOnIIPAny: false, AddressFamily.
Unspecified
, CancellationToken.None), requestCallback, stateObject);
408
else if (addressFamily == AddressFamily.
Unspecified
)
583
Task.FromResult(family == AddressFamily.
Unspecified
|| ipAddress.AddressFamily == family ? new[] { ipAddress } : Array.Empty<IPAddress>()) :
587
asyncState = family == AddressFamily.
Unspecified
? (object)ipAddress : new KeyValuePair<IPAddress, AddressFamily>(ipAddress, family);
621
asyncState = family == AddressFamily.
Unspecified
? (object)hostName : new KeyValuePair<string, AddressFamily>(hostName, family);
628
string h => GetHostAddressesCore(h, AddressFamily.
Unspecified
, activity),
630
IPAddress a => GetHostAddressesCore(a, AddressFamily.
Unspecified
, activity),
639
string h => GetHostEntryCore(h, AddressFamily.
Unspecified
, activity),
641
IPAddress a => GetHostEntryCore(a, AddressFamily.
Unspecified
, activity),
System.Net.Primitives (2)
System\Net\DnsEndPoint.cs (2)
15
public DnsEndPoint(string host, int port) : this(host, port, AddressFamily.
Unspecified
) { }
26
addressFamily != AddressFamily.
Unspecified
)
System.Net.Sockets (5)
src\libraries\Common\src\System\Net\Sockets\ProtocolFamily.cs (1)
17
Unspecified = AddressFamily.
Unspecified
,
System\Net\Sockets\Socket.cs (3)
858
if (dnsEP.AddressFamily != AddressFamily.
Unspecified
&& !CanTryAddressFamily(dnsEP.AddressFamily))
2908
if (dnsEP.AddressFamily != AddressFamily.
Unspecified
&& !CanTryAddressFamily(dnsEP.AddressFamily))
2999
Socket? attemptSocket = dnsEP.AddressFamily != AddressFamily.
Unspecified
? new Socket(dnsEP.AddressFamily, socketType, protocolType) : null;
System\Net\Sockets\SocketAsyncEventArgs.cs (1)
682
Debug.Assert(endPoint.AddressFamily == AddressFamily.
Unspecified
||