TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Darin McBride
from: Phil Crown
date: 1996-12-30 22:13:20
subject: HighSpeed modem-comm

-=> Quoting Darin McBride to Peter Schuller <=-

 DM> I have a simple program that writes to the serial port.  In C++ it
 DM> goes something like this: 
 DM> #include a few headers as appropriate (i.e., I'm too lazy)

 DM> int main(int argc, char** argv)
 DM> {
 DM> if (argc < 2)
 DM> return -1;
 DM> ULONG ulComHandle = strtol(argv[1], NULL, 0);
 DM> ofstream ofComPort(ulComHandle);
 DM> ofComPort << "See this through the com port" << endl;
 DM> return 0;
 DM> }

Interesting program, but if you want to adjust any of the com port
parameters (and there alot of them) you need to pass a file handle to
DosDevIOCtl().

 DM> In fact, it runs between Blinky and Maximus to tell the user what
 DM> speed *I* think s/he's connected at, as well as my BBS motto: 
 DM> I'm going crazy, and I'm taking you with me.

Probably because Bink has already set everything.  SIO's SU is great for
inspecting the com port, but I think there is a bug that it doesn't
report anything higher than 255 for the Read/Write Timeout values.
These are defined as USHORT in the DCBINFO structure (bsedev.h), and I
have no problem setting/querying them at values higher than 255.

I reported this to Ray Gwinn and he said he'd look at it.

Phil Crown
pcrown{at}airmail.net
http://web2.airmail.net/pcrown/

--- Blue Wave/OS2 v2.30
* Origin: * MacSavvy OS/2 BBS * Dallas, Texas * 972-250-4479 * (1:124/1208)
SEEN-BY: 50/99 270/101 620/243 625/160 711/401 409 410 413 430 808 809 934
SEEN-BY: 711/955 712/311 407 505 506 515 517 624 704 824 841 713/317 800/1
@PATH: 124/1208 1 396/1 270/101 712/515 624 711/808 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.