[comp.sys.atari.st] Baud Rate Question

jjung@castor.usc.edu (John Jung) (07/22/89)

  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.)