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

◆ GetUnicastAddressesAsync()

override async Task< UnicastIPAddressInformationCollection > System.Net.NetworkInformation.SystemIPGlobalProperties.GetUnicastAddressesAsync ( )
inlinevirtual

Reimplemented from System.Net.NetworkInformation.IPGlobalProperties.

Definition at line 305 of file SystemIPGlobalProperties.cs.

306 {
308 if (!TeredoHelper.UnsafeNotifyStableUnicastIpAddressTable(delegate(object s)
309 {
310 ((TaskCompletionSource<bool>)s).TrySetResult(result: true);
312 {
314 }
315 UnicastIPAddressInformationCollection unicastIPAddressInformationCollection = new UnicastIPAddressInformationCollection();
316 NetworkInterface[] allNetworkInterfaces = NetworkInterface.GetAllNetworkInterfaces();
317 foreach (NetworkInterface networkInterface in allNetworkInterfaces)
318 {
319 foreach (UnicastIPAddressInformation unicastAddress in networkInterface.GetIPProperties().UnicastAddresses)
320 {
322 {
324 }
325 }
326 }
328 }
bool ICollection< KeyValuePair< TKey, TValue > >. Contains(KeyValuePair< TKey, TValue > keyValuePair)

References System.Collections.Generic.Dictionary< TKey, TValue >.Contains(), System.Net.NetworkInformation.NetworkInterface.GetAllNetworkInterfaces(), System.s, and System.Net.NetworkInformation.TeredoHelper.UnsafeNotifyStableUnicastIpAddressTable().

Referenced by System.Net.NetworkInformation.SystemIPGlobalProperties.BeginGetUnicastAddresses(), and System.Net.NetworkInformation.SystemIPGlobalProperties.GetUnicastAddresses().