Using in_addr in C#
I'm trying to interact with a native DLL using P/Invoke, but it requires an in_addr struct parameter. I keep seeing many different kinds of definitions for it, but which is the best to use? Also, how can I convert a C# IPAddress object to an in_addr struct? ...