I've been writing an app that has to open a Dialup connection to an ISP to send an email to the maintenance team to tell them that something in our system went wrong. The system runs in a back room with no user interaction, so this is the means of alerting humans about a problem.
We bought IPWorks, a commercial bundle of components that give me an interface to RAS, and I know how to determine if the modem is connected or not so I will know to open a new connection or not, but a couple of times now I've done things in my development work that leave the modem "connecting" or "disconnecting". Once the modem is in either state it just sits there unresponsive until I actually give the system a reboot. I find nothing in IPWorks that helps, and I cannot even do anything manually to get it out of either state. I have to reboot.
I don't expect either condition to happen very often in the real world, but how to program something in there to recover from it if I can't even do it myself manually.
So the question I want to understand is -- what is the state "connecting" and "disconnecting"?
We bought IPWorks, a commercial bundle of components that give me an interface to RAS, and I know how to determine if the modem is connected or not so I will know to open a new connection or not, but a couple of times now I've done things in my development work that leave the modem "connecting" or "disconnecting". Once the modem is in either state it just sits there unresponsive until I actually give the system a reboot. I find nothing in IPWorks that helps, and I cannot even do anything manually to get it out of either state. I have to reboot.
I don't expect either condition to happen very often in the real world, but how to program something in there to recover from it if I can't even do it myself manually.
So the question I want to understand is -- what is the state "connecting" and "disconnecting"?