For my purposes it turns out that I can use a TCP socket connection to force 
the same behavior as what the Ping was intended to do. So I’ve found an easy 
workaround that works in a nice consistent way on both platforms.

Cheers,
Joe



> On Apr 10, 2016, at 12:46 PM, Scott Boss <[email protected]> wrote:
> 
> You might have to have different methods for mac vs Windows.  They handle 
> pings very differently.
> 
> Sent from my mobile.
> [email protected]
> 
>> On Apr 10, 2016, at 3:43 PM, Joe Huber <[email protected]> wrote:
>> 
>> I recently started using DarwinPingMBS in a project and discovered it 
>> apparently no longer works on Windows. (.Ping always returns -1 on Windows)
>> It seems to still work on OSX and returns the round trip time. (To clarify 
>> the documentation, 0 only means that the call to .Ping succeeded, not that 
>> the host was reachable.)
>> 
>> Searching the release notes I find it’s also been deprecated. The MBS FAQ 
>> has some alternate recommendations, but none of them seem great nor 
>> consistent cross platform.
>> 
>> So does anyone know of a good way to do a Ping on OSX and Windows? I’d even 
>> settle for a way to read and write IP Datagrams and code up the Ping myself. 
>> Ideas?
>> 
>> Thanks, Joe
>> 
>> _______________________________________________
>> Mbsplugins_monkeybreadsoftware.info mailing list
>> [email protected]
>> https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
> _______________________________________________
> Mbsplugins_monkeybreadsoftware.info mailing list
> [email protected]
> https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Reply via email to