Leveraging synergy in this championship year
Michael Davies
Local
News
Software
Utility
Powered by PyBlosxom
Copyright © 2003, 2004, 2005, 2006, 2007, 2008 Michael Davies, |
IP Address parsing weirdnessHmmm, I wouldn't have expected this:
string str = "2.10";
if (null != System.Net.IPAddress.Parse(str))
{
System.Console.WriteLine("This is an IP address");
}
else
{
System.Console.WriteLine("This is NOT an IP address");
}
Can you guess what is printed? I didn't know you could abbreviate IPv4 addresses. Can anyone point me to an RFC that justifies this weirdness? Update: Well, I'll be a suck egg mule. See your local copy of inet(3N). |
|
This web page is optimised
for standards. |