#include <wvmodem.h>
Inheritance diagram for WvModem:
Public Methods | |
WvModem (const char *filename, int _baud, bool rtscts=true) | |
virtual | ~WvModem () |
virtual void | close () |
virtual bool | carrier () |
virtual int | speed (int _baud) |
WvModem (const char *filename, int _baud, bool rtscts=true) | |
virtual | ~WvModem () |
virtual void | close () |
virtual bool | carrier () |
virtual int | speed (int _baud) |
Private Methods | |
void | setup_modem (bool rtscts) |
int | getstatus () |
void | setup_modem (bool rtscts) |
int | getstatus () |
Private Attributes | |
WvLockFile | lock |
termios | old_t |
bool | closing |
termios | old_t |
Definition at line 85 of file include/wvmodem.h.
|
Definition at line 133 of file wvmodem.cc. References WvModemBase::baud, closing, WvModemBase::die_fast, WvStream::errnum, WvStream::isok(), WvLockFile::lock(), lock, WvFile::open(), and setup_modem(). |
|
Definition at line 158 of file wvmodem.cc. References close(). |
|
|
|
|
|
Is there a carrier present? Reimplemented from WvModemBase. |
|
Is there a carrier present? Reimplemented from WvModemBase. Definition at line 265 of file wvmodem.cc. References getstatus(). Referenced by setup_modem(). |
|
Close the connection to the modem Reimplemented from WvModemBase. |
|
Close the connection to the modem Reimplemented from WvModemBase. Definition at line 217 of file wvmodem.cc. References WvStream::close(), closing, WvStream::getrfd(), WvModemBase::hangup(), WvStream::isok(), and old_t. Referenced by ~WvModem(). |
|
Check the status of the modem |
|
Check the status of the modem Definition at line 256 of file wvmodem.cc. References WvStream::getrfd(), and WvStream::isok(). Referenced by carrier(). |
|
Setup all of the terminal characteristics, and leave the modem in CLOCAL mode to make sure that we can communicate easily with the modem later. |
|
Setup all of the terminal characteristics, and leave the modem in CLOCAL mode to make sure that we can communicate easily with the modem later. Definition at line 164 of file wvmodem.cc. References WvModemBase::baud, carrier(), closing, WvStream::drain(), WvStream::getrfd(), WvStream::isok(), old_t, WvStream::seterr(), speed(), WvModemBase::t, and WvStream::write(). Referenced by WvModem(). |
|
_baud is the desired speed, that you wish the modem to communicate with, and this method returns the actual speed that the modem managed to achieve. Reimplemented from WvModemBase. |
|
_baud is the desired speed, that you wish the modem to communicate with, and this method returns the actual speed that the modem managed to achieve. Reimplemented from WvModemBase. Definition at line 235 of file wvmodem.cc. References SpeedLookup::baud, WvModemBase::baud, WvModemBase::get_real_speed(), WvStream::getrfd(), SpeedLookup::speedt, and WvModemBase::t. Referenced by setup_modem(). |
|
Definition at line 90 of file streams/wvmodem.h. Referenced by close(), setup_modem(), and WvModem(). |
|
Definition at line 88 of file streams/wvmodem.h. Referenced by WvModem(). |
|
Definition at line 89 of file streams/wvmodem.h. |
|
Definition at line 89 of file include/wvmodem.h. Referenced by close(), and setup_modem(). |