wpl@burdvax.UUCP (04/16/87)
I need a C routine that will return when a caller is detected on my modem (i.e. when my modem answers a call from another computer, I want to start my program). Can anyone help? -- William P Loftus UUCP: wpl@burdvax.UUCP Unisys/Paoli Research Center ARPA: wpl@burdvax.prc.unisys.com PO Box 517 BITNET: 202527899@VUVAXCOM Paoli, PA 19301 215-648-7222 (work) 215-649-0633 (home)
papa@bacall.UUCP (Marco Papa) (04/20/87)
William Loftus writes: > > I need a C routine that will return when a caller is detected on my > modem (i.e. when my modem answers a call from another computer, > I want to start my program). It is easy. Just "query" the serial device, and check the status. Code would look like this: readrequest->IOSer.io_Command = SDCMD_QUERY; DoIO(readrequest); if ((readrequest->io_Status & 0x0020) == 0) { /* carrier found */ } -- Marco -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Marco Papa 3175 S. Hoover St., Ste. 275 (213)747-8498 Los Angeles, CA 90007 USC: (213)743-3752 F E L S I N A Now working for ::::::: BIX: papa But in no way :: :: Officially representing ::::::: ...!usc-oberon!bacall!papa S O F T W A R E papa@usc-cse.usc.edu -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-