Sends an Abort message to a connection.
#include "ltdic.h"
L_LTDIC_API L_INT L_DicomSendAbort(hNet, nSource, nReason)
A DICOM Network handle. This is the handle created by calling L_DicomCreateNet.
The source of the abort. Possible values are:
Value | Meaning |
---|---|
PDU_ABORT_SOURCE_USER | [0] Service user. (client) |
PDU_ABORT_SOURCE_PROVIDER | [2] Service provider. (server) |
The reason for the abort. If the source of the abort is PDU_ABORT_SOURCE_USER, the reasons for the abort are not significant. If the source of the abort is PDU_ABORT_SOURCE_PROVIDER, the possible values are:
Value | Meaning |
---|---|
PDU_ABORT_REASON_UNKNOWN | [0] Unknown |
PDU_ABORT_REASON_UNRECOGNIZED | [1] Unrecognized PDU |
PDU_ABORT_REASON_UNEXPECTED | [2] Unexpected PDU |
PDU_ABORT_REASON_UNRECOGNIZED_PARAM | [4] Unrecognized PDU parameter |
PDU_ABORT_REASON_UNEXPECTED_PARAM | [5] Unexpected PDU parameter |
PDU_ABORT_REASON_INVALID_PARAM | [6] Invalid PDU parameter value |
Value | Meaning |
---|---|
DICOM_SUCCESS | The function was successful. |
>0 | An error occurred. Refer to Return Codes. |
Calling L_DicomSendAbort generates a call to RECEIVEABORTCALLBACK. At this time the DICOM Association is closed.
Please note that it is preferable to close a DICOM Association using the L_DicomSendReleaseRequest and L_DicomSendReleaseResponse. For more information on closing a DICOM Association, refer to Closing a DICOM Associate Connection.
Win32, x64, Linux.
This example sends an Abort message to a connection
L_INT DicomSendAbortExample(HDICOMNET hNet)
{
return L_DicomSendAbort(hNet, PDU_ABORT_SOURCE_USER, 0);
}
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document