in-addr

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? ...

how do i get the Port from an in_addr value?

hi, I am trying to extract the port from a given in_addr value in windows. So far I am able to get the IP address using inet_ntoa but not the port. Thanks. ...