Re: IP address format

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Karl E. Peterson (karl_at_mvps.org)
Date: 01/31/05


Date: Mon, 31 Jan 2005 12:31:40 -0800

Mike D Sutton wrote:
>> Well, sure... I you wanna get all fancy... ;-)
>>
>> What's the story (distribution) of that lib, though? I'm curious.
>> For years and years, I've just used "pure VB" for maximum
>> portability...
> <code snipped>
>> Efficiency be damned, huh? <g>
>
> Winsock2 has been around since Win95 (and I seem to recall a
> redistributable package for it a number of years ago?),

Wow, that right? I guess it was just superstition, then, that it always seemed
somewhat external. <g>

> certainly
> I've never had any problems with it though however most (all?) of my
> networking related apps are run on Win2K/XP machines at work:
> http://msdn.microsoft.com/library/en-us/winsock/winsock/inet_addr_2.asp
> I used to have a string based one too, however changed to using the
> Winsock2 function so it would handle all the a error cases and accept
> input in various formats. It also doubles up as a handy IP
> validation method since it will return -1 for addresses that it
> doesn't understand.

Sounds like I should switch over! Thanks...

-- 
[Microsoft Basic: 1976-2001, RIP]


Relevant Pages