Not entirely related to this thread, but when I was going trough the
information
about the IPAddress class, I noticed the constructor takes a Long as
parameter.
According to MSDN, this Long is "the integer value of the IP address".
However, if you look at the Address property of the class, you notice it
returns
an Integer.
So, shouldn't the constructor take an Integer instead of a Long as
parameter,
or shouldn't the Address property return a Long?
I guess they're using a Long in the constructor to be able to easily move
from IPv4 to IPv6, so the sensible thing to do (IMO) would be to let
the Address property return a Long instead of an Integer.
Is this a design flaw in the Class library, or am I missing something here?
Regards,
Pieter Philippaerts
http://www.allapi.net/dotnet/
Quote:
> Though I've never used it, it appears that the IPAddress class located in
> the "System.Net" namespace will do what you need it to do...
> > You can get the IP address of the local computer via C++
> > How can you do this in VB?