Article View: comp.sys.atari.st
Article #2530Baud Rate Question
From: John Jung
Date: Sat, 22 Jul 1989 04:53
Date: Sat, 22 Jul 1989 04:53
21 lines
1189 bytes
1189 bytes
I'm working on a terminal program utility, and I have a question that I just can't figure out. How can I get the current baud rate of the modem? For instance, with Shadow, when you're not connected to anywhere, the baud rate is defaulted to 9600 baud. However, if you are connected somewhere, Shadow somehow knows that you're connected at a certain baud rate. How is this done? Please try to provide (well) documented C code. I would like to be able to find out any baud rate. Thanks in advance. John P.S. I took a look at the Zmodem source code, but the stuff wasn't very clear what was going on. (Not to mention the fact that in the comments, it said a -1 would be returned for an _unknown_ baud rate.)
Technical Details
Message-ID:
<4472@merlin.usc.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!bionet!apple!usc!merlin.usc.edu!castor.usc.edu!jjungShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!bionet!apple!usc!merlin.usc.edu!castor.usc.edu!jjung From: jjung@castor.usc.edu (John Jung) Newsgroups: comp.sys.atari.st Subject: Baud Rate Question Message-ID: <4472@merlin.usc.edu> Date: 22 Jul 89 04:53:55 GMT Sender: news@merlin.usc.edu Reply-To: jjung@castor.usc.edu (John Jung) Organization: University of $outhern California, Los Angeles, CA Lines: 21