Have seen some other threads about this, but nothing in the ‘latest beta’ context. I’m still in a '[em]spike[/em]'ing mode finding out how things work with my Spider. I have a line:
NetworkChange.NetworkAvailabilityChanged += new NetworkAvailabilityChangedEventHandler(NetworkChange_NetworkAvailabilityChanged);
which works great when I either pull or push the cable in and out. However, if the cable is in initially, how to I get to find out if the network is up (or down) as it only fires on a state change. In case it matters I have a static IP address.
@ Joe, I’m converting my Spider into a time machine so I can go back and catch the event.
Meanwhile… I’m assuming the answer is a "[em]no workaround[/em]’ until the GH.Premium DLL becomes available. Any views on when that might be, just so as I can pace myself.
What about a thread that keeps pinging a known IP address, and when is not reachable, throw an UnreachableEvent, and when back reachable, throw a ReachableEvent ?
Ping is like sending 32 octets of datas to the target using ICMP, and waiting for it to respond… I have a code on this somewhere and will look at in this week and send back if available…
Here’s the link to the code I promized. It is originally for the standard Framework, but I guess it wont be difficult to port as it only use low level socket implementations…