Every now and then my router or cable bridge cuts out and all the programs I'm running which need the Internet all give me "disconnected" errors.
One of them, Shareaza, pops up in its notification about it, something along the lines of "A disconnect alert from Windows has been detected"
I know some part of Windows must be responsible for watching network connections because it usually notifies me in a little balloon when the networks go down. Does anybody know how to get this information in Perl?
Normally I'd have to have an Internet-based application constantly "ping" whatever server it's connected to, and if the packet doesn't send, it's a safe bet it's been disconnected. But if the program could detect a Windows alert, it could give feedback right away that a disconnect has probably happened, rather than wait another 30 or 60 seconds or so before it sends its next ping.
I looked over the CPAN/Operating System Interfaces/Microsoft Windows and didn't find any existing Win32 modules for this. Anybody know how to do it?
-------------
Cuvou.com | The NEW Kirsle.net
One of them, Shareaza, pops up in its notification about it, something along the lines of "A disconnect alert from Windows has been detected"
I know some part of Windows must be responsible for watching network connections because it usually notifies me in a little balloon when the networks go down. Does anybody know how to get this information in Perl?
Normally I'd have to have an Internet-based application constantly "ping" whatever server it's connected to, and if the packet doesn't send, it's a safe bet it's been disconnected. But if the program could detect a Windows alert, it could give feedback right away that a disconnect has probably happened, rather than wait another 30 or 60 seconds or so before it sends its next ping.
I looked over the CPAN/Operating System Interfaces/Microsoft Windows and didn't find any existing Win32 modules for this. Anybody know how to do it?
-------------
Cuvou.com | The NEW Kirsle.net