Products | Support | Send comments on this topic. | Email a link to this topic. | Back to Getting Started | Help Version 18.0.10.23
LEADTOOLS DICOM C DLL Help

L_DicomSendData

Show in webframe

#include "ltdic.h"

L_LTDIC_API L_INT L_DicomSendData(hNet, nPresentationID, hCS, hDS)

HDICOMNET hNet;

/* a DICOM Network handle */

L_UCHAR nPresentationID;

/* presentation ID */

HDICOMDS hCS;

/* command message */

HDICOMDS hDS;

/* data set */

Sends a Data message to a connection.

Parameter

Description

hNet

A DICOM Network handle.

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.

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

DICOM_SUCCESS

The function was successful.

>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

Platforms

Win32, x64, Linux.

See Also

Functions:

RECEIVEDATACALLBACK

Topics:

Working with DICOM Network Connections

 

Working with DICOM Associate Connections

Example

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;
}
Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.