Logo Search packages:      
Sourcecode: pwlib version File versions

BOOL PModem::Open ( const PString port,
DWORD  speed = 0,
BYTE  data = 0,
Parity  parity = DefaultParity,
BYTE  stop = 0,
FlowControl  inputFlow = DefaultFlowControl,
FlowControl  outputFlow = DefaultFlowControl 
) [virtual]

Open the modem serial channel on the specified port.

See the PSerialChannel class for more information on the parameters.

TRUE if the modem serial port was successfully opened.
port  Serial port name to open.
speed  Speed of serial port.
data  Number of data bits for serial port.
parity  Parity for serial port.
stop  Number of stop bits for serial port.
inputFlow  Input flow control.
outputFlow  Output flow control.

Reimplemented from PSerialChannel.

Definition at line 173 of file modem.cxx.

References PSerialChannel::Open(), and Uninitialised.

Referenced by PModem().

  if (!PSerialChannel::Open(port,
                            speed, data, parity, stop, inputFlow, outputFlow))
    return FALSE;

  status = Uninitialised;
  return TRUE;

Generated by  Doxygen 1.6.0   Back to index