From owner-freebsd-questions Wed May 5 22:12:20 1999 Delivered-To: freebsd-questions@freebsd.org Received: from kiwi.pinnacle.co.nz (pinnacle.internet.co.nz [210.48.55.133]) by hub.freebsd.org (Postfix) with ESMTP id 2FA7814F8C for ; Wed, 5 May 1999 22:12:16 -0700 (PDT) (envelope-from jonc@pinnacle.co.nz) Received: from kiwi.pinnacle.co.nz (kiwi.pinnacle.co.nz [202.37.163.2]) by kiwi.pinnacle.co.nz (8.9.3/8.9.3) with ESMTP id RAA02121; Thu, 6 May 1999 17:06:45 +1200 (NZST) Date: Thu, 6 May 1999 17:06:44 +1200 (NZST) From: Jonathan Chen To: Grifter Cc: freebsd-questions@freebsd.org Subject: Re: comport usage In-Reply-To: <3.0.1.32.19990505214923.00697cf8@mail.cal.shaw.wave.ca> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG [Please Cc: freebsd-questions] On Wed, 5 May 1999, Grifter wrote: > i have looked over the topics you sent me and most seem to be leaning > toward C+ program. If i go out and buy this book will it have any Perl > examples or will they all be C+ examples? These are mainly C examples; I am unsure whether perl supports serial-line settings. Maybe someone else on the list can tell you. > At 03:10 PM 5/6/99 +1200, you wrote: > >On Wed, 5 May 1999, Grifter wrote: > > > >[..] > >> i have read that i can open the comport like a file but how do i set > >> parity,baudrate, stopbits, startbits etc.... Are there any examples that i > >> could look at or any help files i can use? or hell just someone out there > >> willing to help? > > > >Check out tcsetattr(3) and termios(4). > > > >Get your hands on "Advanced Programming in the UNIX Environment" by > >Stevens for examples. > > Jonathan Chen ---------------------------------------------------------------------- "Nyuck, nyuck, nyuck!" - Curly To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message