tests/tools/scu.cc
// Sends a DIMSE command and possibly also instance data to the configured peer DICOM application
Sends a DIMSE command and possibly also instance data to the configured peer DICOM application
Sends a DIMSE command and possibly also instance data to the configured peer DICOM application
OFCondition DcmSCU::sendDIMSEMessage(const T_ASC_PresentationContextID presID,
                                     T_DIMSE_Message *msg,
                                     DcmDataset *dataObject,
                                     DcmDataset **commandSet)
{
  if (!isConnected())
    return DIMSE_ILLEGALASSOCIATION;
  if (msg == NULL)
    return DIMSE_NULLKEY;
  OFCondition cond;
  if (m_progressNotificationMode)
  {
    cond = DIMSE_sendMessageUsingMemoryData(m_assoc, presID, msg, NULL , dataObject,
                                            callbackSENDProgress, this , commandSet);
  } else {
    cond = DIMSE_sendMessageUsingMemoryData(m_assoc, presID, msg, NULL , dataObject,
                                            NULL , NULL , commandSet);
  }
#if 0
  if (cond.good())
  {
    delete m_openDIMSERequest;
    m_openDIMSERequest = new T_DIMSE_Message;
    memcpy((char*)m_openDIMSERequest, msg, sizeof(*m_openDIMSERequest));
  }
#endif
  return cond;
}
OFCondition DcmSCU :: sendDIMSEMessage ( const T_ASC_PresentationContextID presID , T_DIMSE_Message * msg , DcmDataset * dataObject , DcmDataset * * commandSet ) { if ( ! isConnected ( ) ) return DIMSE_ILLEGALASSOCIATION ; if ( msg == NULL ) return DIMSE_NULLKEY ; OFCondition cond ; if ( m_progressNotificationMode ) { cond = DIMSE_sendMessageUsingMemoryData ( m_assoc , presID , msg , NULL , dataObject , callbackSENDProgress , this , commandSet ) ; } else { cond = DIMSE_sendMessageUsingMemoryData ( m_assoc , presID , msg , NULL , dataObject , NULL , NULL , commandSet ) ; } #if 0 if ( cond . good ( ) ) { delete m_openDIMSERequest ; m_openDIMSERequest = new T_DIMSE_Message ; memcpy ( ( char * ) m_openDIMSERequest , msg , sizeof ( * m_openDIMSERequest ) ) ; } #endif return cond ; }
Sends a DIMSE command and possibly also instance data to the configured peer DICOM application
Sends a DIMSE command and possibly also instance data to the configured peer DICOM application
/* call the corresponding DIMSE function to send the message */ /*statusDetail*/ /*callbackData*/ /*statusDetail*/ /*callback*/ /*callbackData*/ // currently disabled because it is not (yet) needed /* create a copy of the current DIMSE command message */