J
jacob navia
This is what is there now (2006, 20 Dec)
How can I do serial (``comm'') port I/O?
It's system-dependent. Under Unix, you typically open, read, and write a
device file in /dev, and use the facilities of the terminal driver to
adjust its characteristics. (See also questions 19.1 and 19.2.) Under
MS-DOS, you can use the predefined stream stdaux, or a special file like
COM1, or some primitive BIOS interrupts, or (if you require decent
performance) any number of interrupt-driven serial I/O packages. Several
netters recommend the book C Programmer's Guide to Serial
Communications, by Joe Campbell.
---------------
I would eliminate all references to MSDOS, a system that
is obsolete since more than a decade now.
The proposed replacement text is below:
It's system-dependent. Under Unix, you typically open, read, and write a
device file in /dev, and use the facilities of the terminal driver to
adjust its characteristics. (See also questions 19.1 and 19.2.)
Under windows (Win32) you can use the primitives CreateFile, ReadFile,
and WriteFile to open a serial communications port, and read/write
to/from it. For more information see:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnfiles/html/msdn_serial.asp
How can I do serial (``comm'') port I/O?
It's system-dependent. Under Unix, you typically open, read, and write a
device file in /dev, and use the facilities of the terminal driver to
adjust its characteristics. (See also questions 19.1 and 19.2.) Under
MS-DOS, you can use the predefined stream stdaux, or a special file like
COM1, or some primitive BIOS interrupts, or (if you require decent
performance) any number of interrupt-driven serial I/O packages. Several
netters recommend the book C Programmer's Guide to Serial
Communications, by Joe Campbell.
---------------
I would eliminate all references to MSDOS, a system that
is obsolete since more than a decade now.
The proposed replacement text is below:
It's system-dependent. Under Unix, you typically open, read, and write a
device file in /dev, and use the facilities of the terminal driver to
adjust its characteristics. (See also questions 19.1 and 19.2.)
Under windows (Win32) you can use the primitives CreateFile, ReadFile,
and WriteFile to open a serial communications port, and read/write
to/from it. For more information see:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnfiles/html/msdn_serial.asp