#include "ltdic.h"
L_LTDIC_API L_INT L_DicomSendData(hNet, nPresentationID, hCS, hDS)
Sends a Data message to a connection.
A DICOM Network handle.
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.
A DICOM handle that references the command set that contains the actual command message.
A DICOM handle that contains the actual data. This may be NULL if no data set is included.
Value | Meaning |
---|---|
DICOM_SUCCESS | The function was successful. |
>0 | An error occurred. Refer to Return Codes. |
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
Win32, x64, Linux.
This example sends a Command Set message to a connection
L_INT DicomSendDataExample(HDICOMNET hNet)
{
L_INT nRet;
HDICOMDS hDS;
HDICOMDS hCS;
hDS = L_DicomCreateDS(NULL);
hCS = L_DicomCreateDS(NULL);
/* send a command set and a data set */
L_DicomInitCS(hCS, COMMAND_C_STORE, TRUE);
L_DicomInitDS(hDS, CLASS_CR_IMAGE_STORAGE, 0);
/* client is sending data */
nRet = L_DicomSendData(hNet, 1, hCS, hDS);
L_DicomFreeDS(hCS);
L_DicomFreeDS(hDS);
return nRet;
}
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document