> I attached a spreadsheet with the results. 

The mailing list does not widely distribute massive attachments, it's
low volume text only, please email it directly. 

I can fix the Windows issues, but you'll need to look at Mac stuff. 

Angus



-------- Original Message --------

*Subject:* Re: [twsocket] LocalIPList on Mac
*From:* "Bill Florac" <bill.flo...@billflorac.com>
*To:* "'ICS support mailing'" <twsocket@lists.elists.org>
*Date:* Sun, 21 Jan 2018 00:18:01 -0600

Angus,

I finally got around to test this. I attached a spreadsheet with the
results. I ran LocalIPList() with each socket family option. I also
showed
the results of IcsGetInterfaceList(). 

PC is running windows 10, Mac is running High Sierra

LocalIPList:
MAC
- Missing second IPv4 address if called with no parameters
- Returns duplicate entries

PC
- Missing second IPv6 address 

BOTH
Returns IPv6 link-local address but not IPv4. 

IcsGetInterfaceList:
PC
- Missing IPv6 addresses


So if you don't care about IPv6, link-local and filter any duplicates,
it
seems to work!

Bill


-----Original Message-----
From: TWSocket [mailto:twsocket-boun...@lists.elists.org] On Behalf Of
Angus
Robertson - Magenta Systems Ltd
Sent: Wednesday, January 3, 2018 6:32 AM
To: twsocket@lists.elists.org
Subject: Re: [twsocket] LocalIPList on Mac

> 1) It seems that IcsGetInterfaceList() would fail if, for some odd 
> reason, the computer only had IPv6 interfaces.

This would only be on Windows not MacOS, and I suspect it's impossible
to
install Windows without IPv4, too much stuff is dependent on it.  

> 2) This is my function to replace LocalIpList(). 

Not sure we need to replace it, what is the advantage of using
IcsGetInterfaceList over the existing code (but see below)? 

> 3) As to the original LocalIPList() function, it seems that the code 
> at the top where it checks for ASocketFamily is not needed code in
the 
> "else" section handles IPv4 just fine

The 'else' stuff only works on Windows Vista and later, but not on
Windows
XP which still needs GetHostByName.  While we don't officially support
Windows XP or 2000, we also don't want to deliberately break ICS from
working on them.  

But since GetHostByName is deprecated since Vista, I've changed the
code so
it's now only used for Windows XP and earlier, and never for MacOS,
which
should resolve your original problem.  Or are you saying that
GetAddrInfo
only returns a single IP on MacOS as well?  

Testing on Windows 10, I see multiple IPv4 and IPv6 addresses using
both LocalIpList and IcsGetInterfaceList, and no duplicates.   

Angus

--
To unsubscribe or change your settings for TWSocket mailing list please
goto
http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be



-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to