Logo Search packages:      
Sourcecode: pwlib version File versions

BOOL PModem::SendUser ( const PString str  ) 

Send an arbitrary user 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.
str  User command string to send.

Definition at line 410 of file modem.cxx.

References CanSendUser(), PChannel::SendCommandString(), and SendingUserCommand.

  if (CanSendUser()) {
    Status oldStatus = status;
    status = SendingUserCommand;
    if (SendCommandString(str)) {
      status = oldStatus;
      return TRUE;
    status = oldStatus;
  return FALSE;

Generated by  Doxygen 1.6.0   Back to index