Article View: alt.comp.lang.learn.c-c++
Article #790Re: How can I write to a PC port through dos
From: Jack Klein
Date: Mon, 28 Dec 1998 00:00
Date: Mon, 28 Dec 1998 00:00
24 lines
1546 bytes
1546 bytes
On Mon, 28 Dec 1998 11:57:00 +0100, "Eric Younes"
<eric.younes@fth.net> wrote:
> eg : COM1
>
> use open("COM1", O_RDWR) and close() just like files.
> use ioctl() for settings
> use read() and write() for I/Os
>
> Eric
>
<Jack>
Absolutely amazing. There isn't one C or C++ function in your entire
post.
Besides trying to do serial communications through MS-DOS is like
trying to scratch your nose with boxing gloves on.
And on top of all that there wasn't anything in his post which said he
was specifically or only interested in serial ports.
</Jack>
Technical Details
Message-ID:
<3689f26f.182022345@netnews.worldnet.att.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<914778641.26356.0.nnrp-12.c2dea518@news.demon.co.uk> <767o3l$lbc@news.vtcom.fr>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f58d1,3e22ec85252b9f7c X-Google-Attributes: gidf58d1,public X-Google-Thread: 1014db,3e22ec85252b9f7c X-Google-Attributes: gid1014db,public X-Google-Thread: fdcad,3e22ec85252b9f7c X-Google-Attributes: gidfdcad,public X-Google-Thread: f9822,3e22ec85252b9f7c X-Google-Attributes: gidf9822,public X-Google-Thread: 114592,3e22ec85252b9f7c X-Google-Attributes: gid114592,public From: jackklein@att.net (Jack Klein) Subject: Re: How can I write to a PC port through dos Date: 1998/12/28 Message-ID: <3689f26f.182022345@netnews.worldnet.att.net> X-Deja-AN: 426551113 Content-Transfer-Encoding: 7bit References: <914778641.26356.0.nnrp-12.c2dea518@news.demon.co.uk> <767o3l$lbc@news.vtcom.fr> Content-Type: text/plain; charset=us-ascii Organization: AT&T WorldNet Services Mime-Version: 1.0 Newsgroups: alt.comp.lang.learn.c-c++,comp.lang.c,fr.comp.lang.c,fr.comp.lang.c++,han.comp.lang.c