ONNONSECURESENDISCL

#include "ltdic.h"

L_VOID pEXT_CALLBACK Your Function(hNet, nError, nType, nLength, pUserData)

HDICOMNET hNet;

handle to an existing DICOM network

L_INT32 nError;

error code

L_UCHAR nType;

type of data transmitted

L_UINT32 nLength;

length of data transmitted

L_VOID * pUserData;

optional pointer to more parameters for the callback

This function is called after data has been sent using the L_DicomSendNonSecureISCL function. This function is available in the Medical Suitetoolkits.

Parameter

Description

hNet

Handle to an existing DICOM Network. This is the handle returned from the L_DicomCreateNet function.

nError

Error code. Refer to Return Codes.

nType

Type of data transmitted. This can be either the first byte of the DICOM message or 0 if it cannot be identified.

nLength

The length of the sent data, in bytes.

pUserData

Void pointer that you can use to pass one or more additional parameters that the callback function needs. To use this feature, assign a value to a variable or create a structure that contains as many fields as you need. Then, in this parameter, pass the address of the variable or structure, casting it to L_VOID *. The callback function, which receives the address in its own pUserData parameter, can cast it to a pointer of the appropriate data type to access your variable or structure. If the additional parameters are not needed, you can pass NULL in this parameter.

Returns

None.

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

See Also

Functions:

ONNONSECURERECEIVEDISCL, L_DicomSendNonSecureISCL

Topics:

DICOM Net: Callback Function

 

Working with DICOM Network connections

 

General Integrated Secure Communication Layer (ISCL) Information

Example

L_VOID EXT_CALLBACK myOnNonSecureSend(HDICOMNET hNet, L_UINT32 nError, L_UCHAR nType, L_UINT32 nLength, L_VOID * pUserData) 
{ 
   UNREFERENCED_PARAMETER(hNet); 
   UNREFERENCED_PARAMETER(nError); 
   UNREFERENCED_PARAMETER(pUserData); 
   UNREFERENCED_PARAMETER(nLength); 
   UNREFERENCED_PARAMETER(nType); 
   if(nError == DICOM_SUCCESS) 
      MessageBox(NULL, TEXT("Data was successfully sent"), TEXT(""), MB_OK); 
} 

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
LEADTOOLS DICOM C API Help