Groups | Blog | Home
all groups > c# > june 2004 >

c# : Network Active Event?


Edh
6/21/2004 11:34:30 PM
Is there a system event or notification that I can catch in my application
to know when any network connection has become active (WiFi, Dial Up, LAN
etc...)?

Example: I have a service that sits idle until it gets a "Network Active
Event". This service runs on a laptop that may roam in and out of wifi
coverage. When the user walks into a hotspot area, I want my application to
realize this, and now check for new files.

Thanks,
-Ed

Dmitriy Lapshin [C# / .NET MVP]
6/22/2004 2:38:12 PM
Seems that SENS (System Event Notification Service) is capable of providing
such notifications. See the SENS topics in the "Synchronization Manager"
chapter of the Platform SDK.
It uses COM Event System so it should be relatively easy to subscribe to
these events from a .NET app.

--
Sincerely,
Dmitriy Lapshin [C# / .NET MVP]
Bring the power of unit testing to the VS .NET IDE today!
http://www.x-unity.net/teststudio.aspx

[quoted text, click to view]
Dmitriy Lapshin [C# / .NET MVP]
6/22/2004 2:38:55 PM
The ISensNetwork::ConnectionMade method should be of particular interest to
you.

--
Sincerely,
Dmitriy Lapshin [C# / .NET MVP]
Bring the power of unit testing to the VS .NET IDE today!
http://www.x-unity.net/teststudio.aspx

[quoted text, click to view]
AddThis Social Bookmark Button