LDicomNet::CloseForced

Summary

Closes an ISCL connection. This function is available in the PACS Imaging toolkits.

Syntax

#include "ltdic.h"

L_INT LDicomNet::CloseForced (bForced)

Parameters

L_BOOL bForced

Flag that indicates whether to force the disconnection. Possible values are:

Value Meaning
TRUE Kill the connection. (Force the disconnection.)
FALSE Request disconnection. The disconnection can be refused by a peer.

Returns

Value Meaning
DICOM_SUCCESS Success.
>0 An error occurred. Refer to Return Codes.

Comments

When bForced is set to TRUE, the connection is closed immediately. Therefore, it is best to determine if the ISCL message queue is empty before calling this function. To determine whether the ISCL queue is empty, call the LDicomNet::IsISCLQueueEmpty function.

NOTE: LDicomNet::CloseForced (FALSE) is queued in the ISCL message queue. (It will be processed later.) LDicomNet::CloseForced (TRUE) is immediate, however.

Required DLLs and Libraries

Platforms

Win32, x64

See Also

Functions

Topics

Example

For an example, refer to LDicomNet::SendAbort.

Help Version 22.0.2022.12.7
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS DICOM C++ Class Library Help

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.