34 references to Unspecified
System.Net.NameResolution (27)
System\Net\Dns.cs (27)
51
IPHostEntry ipHostEntry = GetHostEntryCore(address, AddressFamily.
Unspecified
);
58
GetHostEntry(hostNameOrAddress, AddressFamily.
Unspecified
);
64
/// <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>
94
GetHostEntryAsync(hostNameOrAddress, AddressFamily.
Unspecified
, CancellationToken.None);
106
GetHostEntryAsync(hostNameOrAddress, AddressFamily.
Unspecified
, cancellationToken);
112
/// <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>
166
IPHostEntry ipHostEntry = GetHostEntryCore((IPAddress)s, AddressFamily.
Unspecified
, activity);
188
=> GetHostAddresses(hostNameOrAddress, AddressFamily.
Unspecified
);
194
/// <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>
212
addresses = (family == AddressFamily.
Unspecified
|| address.AddressFamily == family) ? new IPAddress[] { address } : Array.Empty<IPAddress>();
224
(Task<IPAddress[]>)GetHostEntryOrAddressesCoreAsync(hostNameOrAddress, justReturnParsedIp: true, throwOnIIPAny: true, justAddresses: true, AddressFamily.
Unspecified
, CancellationToken.None);
236
(Task<IPAddress[]>)GetHostEntryOrAddressesCoreAsync(hostNameOrAddress, justReturnParsedIp: true, throwOnIIPAny: true, justAddresses: true, AddressFamily.
Unspecified
, cancellationToken);
242
/// <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>
273
return GetHostEntryCore(hostName, AddressFamily.
Unspecified
);
278
TaskToAsyncResult.Begin(GetHostEntryCoreAsync(hostName, justReturnParsedIp: true, throwOnIIPAny: true, AddressFamily.
Unspecified
, CancellationToken.None), requestCallback, stateObject);
297
IPHostEntry ipHostEntry = GetHostEntryCore(IPAddress.Parse(address), AddressFamily.
Unspecified
);
310
IPHostEntry ipHostEntry = GetHostEntryCore(address, AddressFamily.
Unspecified
);
328
ipHostEntry = GetHostEntryCore(address, AddressFamily.
Unspecified
);
338
ipHostEntry = GetHostEntryCore(hostName, AddressFamily.
Unspecified
);
347
TaskToAsyncResult.Begin(GetHostEntryCoreAsync(hostName, justReturnParsedIp: false, throwOnIIPAny: false, AddressFamily.
Unspecified
, CancellationToken.None), requestCallback, stateObject);
535
Task.FromResult(family == AddressFamily.
Unspecified
|| ipAddress.AddressFamily == family ? new[] { ipAddress } : Array.Empty<IPAddress>()) :
539
asyncState = family == AddressFamily.
Unspecified
? (object)ipAddress : new KeyValuePair<IPAddress, AddressFamily>(ipAddress, family);
573
asyncState = family == AddressFamily.
Unspecified
? (object)hostName : new KeyValuePair<string, AddressFamily>(hostName, family);
580
string h => GetHostAddressesCore(h, AddressFamily.
Unspecified
, activity),
582
IPAddress a => GetHostAddressesCore(a, AddressFamily.
Unspecified
, activity),
591
string h => GetHostEntryCore(h, AddressFamily.
Unspecified
, activity),
593
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))
2911
if (dnsEP.AddressFamily != AddressFamily.
Unspecified
&& !CanTryAddressFamily(dnsEP.AddressFamily))
3004
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
||