Logo Search packages:      
Sourcecode: pwlib version File versions  Download package

BOOL PModem::Deinitialise (  )

Send the de-initialisation meta-command string to the modem. The return value indicates that the conditions for the operation to start were met, ie the serial port was open etc and the command was successfully sent with all replies met.

TRUE if command string sent successfully and the objects state has changed.

Definition at line 278 of file modem.cxx.

References CanDeinitialise(), DeinitialiseFailed, Deinitialising, PChannel::SendCommandString(), and Uninitialised.

  if (CanDeinitialise()) {
    status = Deinitialising;
    if (SendCommandString(deinitCmd)) {
      status = Uninitialised;
      return TRUE;
    status = DeinitialiseFailed;
  return FALSE;

Here is the call graph for this function:

Generated by  Doxygen 1.6.0   Back to index