Mail Archives: djgpp/1997/12/08/14:31:06
From: | michael DOT mauch AT gmx DOT de (Michael Mauch)
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Re: Compatible Serial Communication
|
Date: | Mon, 08 Dec 1997 09:34:53 +0100
|
Organization: | Gerhard-Mercator-Universitaet -GH- Duisburg
|
Lines: | 19
|
Message-ID: | <348b8ee8.4418862@news.uni-duisburg.de>
|
References: | <66fme6$edq AT ds2 DOT acs DOT ucalgary DOT ca>
|
NNTP-Posting-Host: | ppp100.uni-duisburg.de
|
Mime-Version: | 1.0
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
On Sun, 7 Dec 1997 19:35:54 -0700, Matthew Mastracci
<mmastrac AT acs DOT ucalgary DOT ca> wrote:
> What would be the best way to create a (relatively) portable serial
> communications library? By portable, I mean that I'd like it to run on
> DOS and Linux with as little modification as possible.
I don't know if it's the best way, but I think using the termios
functions on Linux and implementing them on DJGPP would be a good way.
Right now, DJGPP does have the termios functions, but they are
implemented only for the console.
I don't know how one uses the termios functions for serial
communications, but there's a free library called Spunk in the Estic
sources at http://www.musoftware.com/estic/ . It contains a serial
communications class for many systems, including DJGPP, Linux and Win32.
Regards...
Michael
- Raw text -