From owner-freebsd-questions Fri Feb 25 13:17:15 2000 Delivered-To: freebsd-questions@freebsd.org Received: from blaubaer.kn-bremen.de (blaubaer.kn-bremen.de [195.37.179.254]) by hub.freebsd.org (Postfix) with ESMTP id B18D637BC62; Fri, 25 Feb 2000 13:17:07 -0800 (PST) (envelope-from nox@saturn.kn-bremen.de) Received: from saturn.kn-bremen.de (uucp@localhost) by blaubaer.kn-bremen.de (8.9.1/8.9.1) with UUCP id WAA09685; Fri, 25 Feb 2000 22:11:20 +0100 Received: (from nox@localhost) by saturn.kn-bremen.de (8.9.3/8.8.5) id VAA04133; Fri, 25 Feb 2000 21:12:23 +0100 (CET) Date: Fri, 25 Feb 2000 21:12:23 +0100 (CET) From: Juergen Lock Message-Id: <200002252012.VAA04133@saturn.kn-bremen.de> To: ptacek@dashmail.net Subject: Re: modem program... Help X-Newsgroups: local.list.freebsd.hackers In-Reply-To: <015201bf7f4d$ac963e00$0301a8c0@Ptacek> References: Organization: home Cc: , Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG (hmm a crosspost to -hackers and -questions, is that good?) In article <015201bf7f4d$ac963e00$0301a8c0@Ptacek> you write: >Thanks to all that replied... I have the +++ <2sec. delay>ATH working. > >I guess my only question now is how do I access the DTR, CD, etc signals >from my code. Is there an example somewhere? I have looked through the >termios man file but couldn't find anything? Well the normal `unix' way to watch for CD is to turn off CLOCAL, then you'll get a SIGHUP when the modem loses its connection. (thats where that signal's name comes from, hangup. people have dialed into unix boxes over modems long before the internet got popular...) and to drop DTR you just do the equivalent of a `stty 0'. simple, eh? :) (once you know it...) HTH, -- Juergen Lock (remove dot foo from address to reply) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message