473,511 Members | 15,046 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Network Active Event?

Edh
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
Nov 16 '05 #1
2 2727
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

"Edh" <no****@ee.com> wrote in message
news:OU**************@TK2MSFTNGP09.phx.gbl...
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


Nov 16 '05 #2
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

"Edh" <no****@ee.com> wrote in message
news:OU**************@TK2MSFTNGP09.phx.gbl...
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


Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
5548
by: Neil Cherry | last post by:
I have to modifiy a program which uses a serial interface and event listeners. The modification entails adding support for connecting to a terminal server via an IP address and port number instead...
3
814
by: Zeno Lee | last post by:
I'm trying to authenticate a user against a windows network. I want it to work across any kind of windows network from NT 4.0 up to Windows 2003 ADS. So far I've been using DirectoryEntry and...
1
1603
by: Pierre | last post by:
Hi all, If a user open forms on a network and let it there for a while, will it help the network if we close the form automatically after a while or it has nothing to do with the load on a...
3
3856
by: Steve | last post by:
Hi all How would i get a list of all Active Computers on a network? All I need are the computer names. Kind Regards, Steve.
1
313
by: Bob | last post by:
Hi, Can anybody give me an idea on how to achieve the following: 1 - Detect when a network connection (under XP) changes between active/disabled - must be some kind of events fired... 2 -...
8
3006
by: BJ | last post by:
Problem: How can I code up a client side process to detect if the network is available? Synopsis: I am writing ASP.NET input forms for a Panasonic Tuff book. The users will be walking around...
3
2096
by: Danny J. Lesandrini | last post by:
-- previously posted on newsgroup :: <microsoft.public.access-- Has anyone else noticed this behavior? Focus jumping from current cell to upper left in embedded datasheet. If not, would you be...
5
11137
by: Paul Bromley | last post by:
How do I know which IP address is active?? I have created the following class and this works well, but the first address it obtains on my machine is not the active one - in fact I do not know...
41
10312
by: saurabh9gupta | last post by:
I want ot generate a Network Diagram based on the information Stored in my Database IP ADRESS STATUS 128.98.76.6 Active 128.96.35.21 Active 128.5.68.9 Not...
0
7237
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7137
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7417
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7506
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5659
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5063
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3210
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1572
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
780
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.