tests/tools/scu.cc
// Receive DIMSE command (excluding dataset!) over the currently open association
Receive DIMSE command (excluding dataset!) over the currently open association
Receive DIMSE command ( excluding dataset! ) over the currently open association
OFCondition DcmSCU::receiveDIMSECommand(T_ASC_PresentationContextID *presID,
                                        T_DIMSE_Message *msg,
                                        DcmDataset **statusDetail,
                                        DcmDataset **commandSet,
                                        const Uint32 timeout)
{
  if (!isConnected())
    return DIMSE_ILLEGALASSOCIATION;
  OFCondition cond;
  if (timeout > 0)
  {
    cond = DIMSE_receiveCommand(m_assoc, DIMSE_NONBLOCKING, timeout, presID,
                                msg, statusDetail, commandSet);
  } else {
    cond = DIMSE_receiveCommand(m_assoc, m_blockMode, m_dimseTimeout, presID,
                                msg, statusDetail, commandSet);
  }
  return cond;
}
OFCondition DcmSCU :: receiveDIMSECommand ( T_ASC_PresentationContextID * presID , T_DIMSE_Message * msg , DcmDataset * * statusDetail , DcmDataset * * commandSet , const Uint32 timeout ) { if ( ! isConnected ( ) ) return DIMSE_ILLEGALASSOCIATION ; OFCondition cond ; if ( timeout > 0 ) { cond = DIMSE_receiveCommand ( m_assoc , DIMSE_NONBLOCKING , timeout , presID , msg , statusDetail , commandSet ) ; } else { cond = DIMSE_receiveCommand ( m_assoc , m_blockMode , m_dimseTimeout , presID , msg , statusDetail , commandSet ) ; } return cond ; }
Receive DIMSE command (excluding dataset!)
Receive DIMSE command ( excluding dataset! )
/* call the corresponding DIMSE function to receive the command (use specified timeout)*/ /* call the corresponding DIMSE function to receive the command (use default timeout) */