[comp.lang.c++] Q's about serial I/O in TC++

sam4628@zeus.tamu.edu (MCCLUNEY, S) (04/23/91)

Disclaimer: I'm new to Turbo C++... I'm new to C++... For that matter, I'm
just learning C (not a bad transition from Pascal, though).

I'm trying to do serial IO using the bioscom library function. The IO
appears to be unbuffered. If so, what is the best way to do buffered
IO out the COM port? If not, can I set the size of the buffer? Finally,
is there a way to set the XMIT/Receive timeout times?  Thanks.
                                                             Steven

kb2glo@cbnewsj.att.com (thomas.kenny) (04/25/91)

In article <15151@helios.TAMU.EDU> sam4628@zeus.tamu.edu writes:
>Disclaimer: I'm new to Turbo C++... I'm new to C++... For that matter, I'm
>just learning C (not a bad transition from Pascal, though).
>
>I'm trying to do serial IO using the bioscom library function. The IO
>appears to be unbuffered. If so, what is the best way to do buffered
>IO out the COM port? If not, can I set the size of the buffer? Finally,
>is there a way to set the XMIT/Receive timeout times?  Thanks.
>                                                             Steven

This is a very good question! I was just about to ask the same thing.
Although I'm a guru in UNIX/C I'm a novice when it comes to C++ and
C on MSDOS. I wrote a short C program using bioscom and characters
were being dropped from the COM port. To learn C++ better I would
rather just write in C++ then in C. So I'd also like to know how to
access the COM ports without dropping any bytes. Any ideas, suggestions?


-- 
Tom Kenny, KB2GLO
uucp:   att!lzatt!tek          internet: tek%lzlup@att.att.com
packet: kb2glo@nn2z.nj.usa.na  ampr: kb2glo@nn2z.ampr.org [44.64.0.10]