class PModem: public PSerialChannel

A class representing a modem attached to a serial port.

Inheritance:



Inherited from PSerialChannel:

Public

Construction

Open functions

Configuration functions

Status functions


Inherited from PChannel:

Public Methods

ostatic BOOL ConvertOSError( int libcReturnValue, Errors & lastError, int & osError )

Public

Overrides from class PObject

Information functions

Reading functions

Writing functions

Miscellaneous functions

Error functions

Protected Fields

oint os_handle
oErrors lastErrorCode[NumErrorGroups+1]
oint lastErrorNumber[NumErrorGroups+1]
oPINDEX lastReadCount
oPINDEX lastWriteCount
oPTimeInterval readTimeout
oPTimeInterval writeTimeout

Protected Methods

ovirtual BOOL ConvertOSError( int libcReturnValue, ErrorGroup group = LastGeneralError )
oBOOL SetErrorValues( Errors errorCode, int osError, ErrorGroup group = LastGeneralError )
oint ReadCharWithTimeout( PTimeInterval & timeout )


Inherited from PObject:

Public

Run Time Type functions

Comparison functions

I/O functions


Documentation

A class representing a modem attached to a serial port. This adds the usual modem operations to the basic serial port.

A modem object is always in a particular state. This state determines what operations are allowed which then move the object to other states. The operations are the exchange of strings in "chat" script.

The following defaults are used for command strings: initialise <CODE>ATZ\r\w2sOK\w100m</CODE> deinitialise <CODE>\d2s+++\d2sATH0\r</CODE> pre-dial <CODE>ATDT</CODE> post-dial <CODE>\r</CODE> busy reply <CODE>BUSY</CODE> no carrier reply <CODE>NO CARRIER</CODE> connect reply <CODE>CONNECT</CODE> hang up <CODE>\d2s+++\d2sATH0\r</CODE>


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.