Log in

View Full Version : Are You Connected?


Andy Sjostrom
08-05-2004, 10:00 PM
<div class='os_post_top_link'><a href='http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetcomp/html/networkcomponent.asp' target='_blank'>http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetcomp/html/networkcomponent.asp</a><br /><br /></div>Designing applications that are automatically aware of whether or not a network connection exists becomes increasingly interesting. Today's devices can connect using cellular networks, WiFi networks and even passing through the connection held by a desktop PC. Synchronization is one scenario where an application's ability to make intelligent and automatic decisions based on connectivity is useful.<br /><br />MSDN authors Dan Fox and Jon Box just got their latest contribution "Testing for and Responding to Network Connections in the .NET Compact Framework" published. Take a look at their sample code to learn how to detect network connections from your Microsoft® .NET Compact Framework-based applications.

Kris Kumar
08-06-2004, 05:12 AM
When an ActiveSync passthru connection is established will the phone have an IP address?

Kris Kumar
08-06-2004, 05:19 AM
Also too bad that that you have to do constant polling to figure out if you have connectivity or not. Having a system event that you can register for would have been good.

I believe Windows CE 5.0 has it and the next Smartphone OS (2005) will have it too.