How do you parse an IP address string to a uint value in C#?

后端 未结 9 736
庸人自扰
庸人自扰 2020-12-30 13:44

I\'m writing C# code that uses the windows IP Helper API. One of the functions I\'m trying to call is \"GetBestInterface\" that takes a \'uint\' representation of an IP. Wha

9条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-30 14:16

    Also you should remember that IPv4 and IPv6 are different lengths.

提交回复
热议问题