Re: Network Status Notification



"one-trick-pony" <worldofpain.aamir@xxxxxxxxx> wrote in message news:1175262001.717782.57030@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi,

I was reading about SENS yesterday at MSDN. But somethings I didn't
liked about that approach is most of the functions that I saw required
TCP/IP implemented to work, it seems to be geared toward mobile users,
MS does not recommend using IsNetworkAlive function because it can
hang your system for long time and is slow. Furthermore,
documentation on how to set up for Notification of network status
seems to be missing.

I will appreciate any good software engineering suggestions.

Aamir

IMHO your solution (polling in a separate thread) is simple and good enough.
Of course, the polling should be not very heavy on the system
(for example, don't ping continuously, poll less frequently while disconnected).
As the next step, you can add detection of WMI events and so on.

This really depends on what kind of "network connectivity"
you need to detect - is it LAN or internet connection?
Why the status of network can change:
- a cable unplugged
- the remote side goes down
- Wireless connection comes and goes


Regards,
--PA


.



Relevant Pages

  • RE: strange workgroup icon
    ... I think it is your Neighbour Wireless connection appeared in your ... Connections>> D Network Connections and right click the Wireless Network ... On the Wireless Network Connection Properties click on Wireless Networks Tab. ... TCP/IP and click Properties. ...
    (microsoft.public.windowsxp.help_and_support)
  • Network Settings - Win XP Pro/Win 98 SE
    ... crossover cable over "TCP/IP". ... Then, I ran Network ... Connection uses following Items: ... - File and Printer Sharing for Microsoft Networks ...
    (microsoft.public.windowsxp.network_web)
  • Re: problem browsing home network with my Laptop
    ... >I have a laptop connected directly to my computer. ... >Connection specific DNS suffix: mshome.net ... Open the Network Connections folder. ... Double click Internet Protocol (TCP/IP). ...
    (microsoft.public.windowsxp.network_web)
  • Re: 2 PCs with 2 Network Cards but one keeps dropping
    ... Configure TCP/IP on the ethernet adpaters manually. ... Right click on My Network Places and select Properties. ... On the Local Area Connection for the wireless adpaters, ... > the original network cards still installed) but allow both computers to ...
    (microsoft.public.windowsxp.network_web)
  • Re: files wont share
    ... Enable XP's firewall on pc 1's shared Internet connection to protect ... local area network connection. ... Make sure that NetBIOS over TCP/IP is enabled on all computers. ... Default Node Type for Microsoft Clients ...
    (microsoft.public.windowsxp.network_web)