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

◆ SupportsGetAddrInfoAsync

bool System.Net.NameResolutionPal.SupportsGetAddrInfoAsync
staticget

Definition at line 171 of file NameResolutionPal.cs.

172 {
173 get
174 {
175 int num = s_getAddrInfoExSupported;
176 if (num == 0)
177 {
178 Initialize();
180 }
181 return num == 1;
182 static void Initialize()
183 {
184 global::Interop.Winsock.EnsureInitialized();
185 IntPtr handle = global::Interop.Kernel32.LoadLibraryEx("ws2_32.dll", IntPtr.Zero, 2048);
186 IntPtr address;
187 bool flag = NativeLibrary.TryGetExport(handle, "GetAddrInfoExCancel", out address);
189 }
190 }
191 }
static volatile int s_getAddrInfoExSupported
static bool TryGetExport(IntPtr handle, string name, out IntPtr address)
static int CompareExchange(ref int location1, int value, int comparand)

Referenced by System.Net.Dns.GetHostEntryOrAddressesCoreAsync().