LDicomNet::SendData

#include "ltdic.h"

L_INT LDicomNet::SendData(nPresentationID, pCS, pDS)

Sends a Data message to a connection. This function is available in the Medical Imaging Suite Toolkit.

Parameters

L_UCHAR nPresentationID

Presentation ID. The presentation ID provides information about both the class type of the data and the transfer syntax to use when transferring the data.

LDicomDS *pCS

A DICOM object that references the command set that contains the actual command message.

LDicomDS *pDS

A DICOM object that contains the actual data. This may be NULL if no data set is included.

Returns

Value Meaning
0 SUCCESS
>0 An error occurred. Refer to Return Codes.

Comments

This is a low level means of sending DICOM messages and data. It allows you to send messages yourself, instead of using the high level message sending functions provided.

For more information about sending messages, refer to Sending Messages.

Required DLLs and Libraries

Platforms

Win32, x64

See Also

Functions

Topics

Example

L_INT LDicomNet_SendDataExample(LDicomNet* m_pDicomNet) 
{ 
   L_INT nRet; 
   LDicomDS DicomDS1, DicomDS2; 
 
   //send a command set, then a data set 
   DicomDS1.InitDS( CLASS_CR_IMAGE_STORAGE, 0); 
   DicomDS2.InitCS(COMMAND_C_STORE, TRUE); 
 
   //client is sending data 
   nRet = m_pDicomNet->SendData(1, &DicomDS2, &DicomDS1); 
   if(nRet != DICOM_SUCCESS) 
      return nRet; 
 
   return DICOM_SUCCESS; 
} 
Help Version 21.0.2021.7.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS DICOM C++ Class Library Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.