Arian Kulp's Blog
opinion, insight, and occasional code

Mobility part 2

Monday, May 22, 2006 6:33 PM
The second part of my mobilty article, "You can take it with you" has just been published on MSDN Coding 4 Fun. It continues from last time (where I highlighted power management/awareness). This one focuses on network management/awareness. Good stuff (I think), great additions to the Framework (with 2.0), and ready for integration with your desktop applications today! Check it out here.




Feedback

# re: Mobility part 2

Just found this series of articles. I was searching for some info on this very topic, and ran across it. What I was wondering though, was how to make the checkbox for the domain availability auto-update. As metioned in the article, just because you have your network adapter status 'up' does not ensure connectivity to your host domain.

I've played around with this a bit, by cycling the status of the network adapter and monitoring statistics after enabling it. Although the Network IsAvailable change event does effectively report the network adapter change, you really don't have access to the host domain until you've received Unicast packets. At least that's what I observe. Any attempts to ping or connect to your network fail until the network adapter receives a response back from the host domain, and that's the point when you can at least try to connect to the network to perform other chores like browsing.

So, I really don't see any way around firing off a timer to monitor the Unicast Packets Received stats every 18 seconds or so. I was wondering if there is a more elegant way to provide update status of the Host Domain Available/Unavailable? In the example app, you have to refresh the network stats to fire off another ping, and building network aware apps really requires this kind of thing to be done in the background. I added some logic to monitor the Unicast Packets Received stat and update the status when the counts are above 0, and that seems to work.

Any other ideas are appreciated. Thanks for the articles, they are very well written and useful learning tools. 6/23/2006 7:05 AM | iwonder



Comments have been closed on this topic.