My hayes compat modem is set to report both CONNECT and CARRIER speeds.
Connect speed is the speed between the modem and the computer
Carrier speed is the telephone line baud rate.
Modems seem to be set up by default to report connect speed only
: > Greetings. I'm looking for a way to determine the speed at which remote
: > (dialup) users have connected to the system. Not necessarily the
: > results of 'stty speed' but more like, 14.4, 28.8, et cetera. I'm trying
: > to write a BBS program that, among other things, will enforce time-limits
: > on connections, and will prevent a download if the user's connect speed is
: > realistically too low to allow a full download in the time remaining.
: > Is there an easy way to cull this from Linux? I'll probably be using
: > 'agetty' unless something esle would work better.
: agetty -n might pass it through. In any case, a Hayes modem will display
: a message of the form "CONNECT <speed><other info>" upon connection; once
: you get that info, you'll have what you need. You might need to write
: a special script in init to do tat, or hack agetty.
: David Lee Lambert MHm 16x20 Hack Programmer and Student
: Admin of lmert.dyn.ml.org http://lmert.dyn.ml.org
: My web pages are at http://web.egr.msu.edu/~lamber45
/\ SUN of them wants to use you,
/ \ \\ / SUN of them wants to be used by you,
/ / \/ / //\
\//\ \// / SUN of them wants to abuse you,
/ / /\ /
/ \\ \ SUN of them wants to be abused ...
\/ -- Eurythmics