determining if DCE device is ready

Trevor Cotton trevc at tecate.mips.com
Wed Apr 24 07:43:18 AEST 1991


In article <8272 at alpha.cam.nist.gov>, coleman at cam.nist.gov (Sean Sheridan Coleman X5672) writes:
|> I am working on a program that uses the tty serial lines.  i 
|> would like to be able from my program to sense if the DCE (Data
|> Communication Equipment) is at the other end and running, ie 
|> i dont want to have the program connect to a port that has 
|> nothing plugged into it. Is there a way to see if DATA CARRIER
|> DETECT is high at the DCE end from a C program.
|> 
|> 
|> Thanks in advanced`
|> 
|> Sean Coleman
|> NIST
|> coleman at bldrdoc.gov

If your OS has Berkeley functionality you should be able to use the
TIOCMGET ioctl.

-- 
--trevc--



More information about the Comp.unix.questions mailing list