🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.comp.lang.learn.c-c++
Article #797

Re: How can I write to a PC port through dos

#797
From: Eric Younes
Date: Mon, 28 Dec 1998 00:00
7 lines
994 bytes
eg : COM1

use open("COM1", O_RDWR) and close() just like files.
use ioctl() for settings
use read() and write() for I/Os

Eric
Technical Details
Message-ID: <767o3l$lbc@news.vtcom.fr>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <914778641.26356.0.nnrp-12.c2dea518@news.demon.co.uk>

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: "Eric Younes" <eric.younes@fth.net>
Subject: Re: How can I write to a PC port through dos
Date: 1998/12/28
Message-ID: <767o3l$lbc@news.vtcom.fr>
X-Deja-AN: 426403079
References: <914778641.26356.0.nnrp-12.c2dea518@news.demon.co.uk>
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Organization: FTH
Newsgroups: alt.comp.lang.learn.c-c++,comp.lang.c,fr.comp.lang.c,fr.comp.lang.c++,han.comp.lang.c