L_DicomSetRequest

#include "ltdic.h"

L_LTDIC_API L_VOID L_DicomSetRequest(hPDU, bRequest)

HDICOMPDU hPDU;

/* a DICOM Associate handle */

L_BOOL bRequest;

/* flag that indicates the type of Associate to set */

Sets the type of DICOM Associate (Request or Accept).

Parameter

Description

hPDU

A DICOM Associate handle.

bRequest

Flag that indicates the type of DICOM Associate to set. Possible values are:

 

Value

Meaning

 

TRUE

Sets the DICOM Associate to Associate Request.

 

FALSE

Sets the DICOM Associate to Associate Accept.

Returns

None.

Comments

For more information about Associate Connections, refer to Creating a DICOM Associate Connection.

To determine what of Associate a specific DICOM Associate is, use L_DicomIsRequest.

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:

L_DicomIsRequest

Topics:

Working with DICOM Associate Connections

Example

This example sets the type of an Associate class

L_INT DicomSetRequestExample(HDICOMPDU hPDU)
{
   L_DicomSetRequest(hPDU, TRUE);
   return DICOM_SUCCESS;
}