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

◆ GetBestInterfaceForAddress()

static int System.Net.NetworkInformation.SystemNetworkInterface.GetBestInterfaceForAddress ( IPAddress addr)
inlinestaticprivate

Definition at line 54 of file SystemNetworkInterface.cs.

55 {
57 int index;
58 int bestInterfaceEx = (int)global::Interop.IpHlpApi.GetBestInterfaceEx(socketAddress.Buffer, out index);
59 if (bestInterfaceEx != 0)
60 {
61 throw new NetworkInformationException(bestInterfaceEx);
62 }
63 return index;
64 }

References System.Net.Internals.SocketAddress.Buffer, and System.index.