Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

WvModem Class Reference

#include <wvmodem.h>

Inheritance diagram for WvModem:

WvModemBase WvModemBase WvFile WvFile WvFile WvFile WvStream WvStream WvStream WvStream WvStream WvStream WvStream WvStream List of all members.

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

Detailed Description

WvModem implements a named modem that really needs to be opened, closed, and manipulated in lots of ways

Definition at line 85 of file include/wvmodem.h.


Constructor & Destructor Documentation

WvModem::WvModem const char *    filename,
int    _baud,
bool    rtscts = true
 

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

WvModem::~WvModem   [virtual]
 

Definition at line 158 of file wvmodem.cc.

References close().

WvModem::WvModem const char *    filename,
int    _baud,
bool    rtscts = true
 

virtual WvModem::~WvModem   [virtual]
 


Member Function Documentation

virtual bool WvModem::carrier   [virtual]
 

Is there a carrier present?

Reimplemented from WvModemBase.

bool WvModem::carrier   [virtual]
 

Is there a carrier present?

Reimplemented from WvModemBase.

Definition at line 265 of file wvmodem.cc.

References getstatus().

Referenced by setup_modem().

virtual void WvModem::close   [virtual]
 

Close the connection to the modem

Reimplemented from WvModemBase.

void WvModem::close   [virtual]
 

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

int WvModem::getstatus   [private]
 

Check the status of the modem

int WvModem::getstatus   [private]
 

Check the status of the modem

Definition at line 256 of file wvmodem.cc.

References WvStream::getrfd(), and WvStream::isok().

Referenced by carrier().

void WvModem::setup_modem bool    rtscts [private]
 

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.

void WvModem::setup_modem bool    rtscts [private]
 

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

virtual int WvModem::speed int    _baud [virtual]
 

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

int WvModem::speed int    _baud [virtual]
 

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


Member Data Documentation

bool WvModem::closing [private]
 

Definition at line 90 of file streams/wvmodem.h.

Referenced by close(), setup_modem(), and WvModem().

WvLockFile WvModem::lock [private]
 

Definition at line 88 of file streams/wvmodem.h.

Referenced by WvModem().

struct termios WvModem::old_t [private]
 

Definition at line 89 of file streams/wvmodem.h.

struct termios WvModem::old_t [private]
 

Definition at line 89 of file include/wvmodem.h.

Referenced by close(), and setup_modem().


The documentation for this class was generated from the following files:
Generated on Sat Aug 24 21:37:07 2002 for WvStreams by doxygen1.2.15