L_DicomSendData
#include "ltdic.h"
L_INT EXT_FUNCTION L_DicomSendData(hNet, nID, hCS, hDS)
HDICOMNET hNet; |
/* a DICOM Network handle */ |
L_UCHAR nID; |
/* presentation ID */ |
HDICOMDS hCS; |
/* command message */ |
HDICOMDS hDS; |
/* data set */ |
Sends a Data message to a connection. This function is available in the Medical Suite Toolkit.
Parameter |
Description |
hNet |
A DICOM Network handle. |
nID |
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. |
hCS |
A DICOM handle that references the command set that contains the actual command message. |
hDS |
A DICOM handle that contains the actual data. This may be NULL if no data set is included. |
Returns
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
LTDIC For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application |
See Also
Functions: |
|
Topics: |
|
|
Example
/* This example sends a Command Set message to a connection */
L_VOID Test(HDICOMNET hNet)
{
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 */
L_DicomSendData(hNet, 1, hCS, hDS);
L_DicomFreeDS(hCS);
L_DicomFreeDS(hDS);
}