TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Marcello Desantis
from: Craig Morrison
date: 1994-08-24 20:35:06
subject: Monitor dcd status

MSGID: 1:201/60.0 e5be0391
REPLY: 2:335/350{at}fidonet.org 2e5494d4
Marcello Desantis doth sayeth in a message unto All:

MD> a) Monitor the Data Carrier Detected status. I know that
MD> this can be done with DosDevIOCtl, but I need to do it from
MD> another process (the watchdog) than the one that's using the

  Then you will need to open the port and pass it to Binkley (put the
"server" verb in your Binkley.Cfg) or find some way of passing
the port handle to your process..
  I can't think of any reason why you would need to have a watchdog running
with Bink, so I would imagine your best solution would be to have your code
act something like Peter Fitzsimmon's BigBro does.. Accept the port handle
as a parameter on your command line, start a thread to watch the DCD state
and then spawn the next executable in your main thread passing the port
handle along.. In this case you don't have to worry about opening and
closing the port, just convert it from ASCII to an HFILE and call
DosDevIOCtl with it.

MD> b) Reboot the system if some unrecoverable error occur. I do

  This one I can't help you with.. And I'm sure you are going to be asked
by a lot of folks why you think this is really necessary.. Not that it
matters to me, just a warning for you to get out your asbestos undies.. ;-)

 See ya,

Craig
.
craig.morrison{at}nfe.com

... Critical Mass:  38 years of liberals in Congress

--- timEd/2-B9

* Origin: Workplace Connection * (317) 742-2680 * (1:201/60)
SEEN-BY: 12/2442 54/54 620/243 624/50 632/348 640/820 690/660 711/409 410 413
SEEN-BY: 711/430 807 808 809 934 712/353 623 713/888 800/1
@PATH: 112/75 2400 1 280/1 396/1 3615/50 229/2 12/2442 711/409 54/54 711/808
@PATH: 711/809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.