Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!ames!cit-vax!oberon!bacall!papa From: papa@bacall.UUCP (Marco Papa) Newsgroups: comp.sys.amiga Subject: Re: Need a routine to dectect carrier. Message-ID: <2385@bacall.UUCP> Date: Sun, 19-Apr-87 22:45:32 EST Article-I.D.: bacall.2385 Posted: Sun Apr 19 22:45:32 1987 Date-Received: Wed, 22-Apr-87 00:58:14 EST References: <3274@burdvax.PRC.Unisys.COM> Organization: CS&CE Depts, U.S.C., Los Angeles, CA Lines: 26 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 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-