LDicomNet::OnReceiveAbort

#include "ltdic.h"

virtual L_VOID LDicomNet::OnReceiveAbort(nSource, nReason)

L_UCHAR nSource;

/* source of the abort */

L_UCHAR nReason;

/* reason for the abort */

Notifies a connection that an Abort message was received. This function is available in the Medical Imaging Suite Toolkit.

Parameter

Description

nSource

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)

nReason

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

Returns

None.

Comments

A call to this function is generated on a connection when the peer member of the connection calls LDicomNet::SendAbort.

To customize this function, you must derive a class from LDicomNet and override this function.

Please note that it is preferable to close a DICOM Association using the LDicomNet::SendReleaseRequest and LDicomNet::SendReleaseResponse. For more information on closing a DICOM Association, refer to Closing a DICOM Associate Connection.

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:

LDicomNet::SendAbort, LDicomNet::SendReleaseRequest, LDicomNet::SendReleaseResponse, LDicomNet::OnReceiveReleaseRequest, LDicomNet::OnReceiveReleaseResponse

Example

//LMyDicomNet is a class derived from LDicomNet

//In class LMyDicomNet, all events (virtual functions OnXXX()) have been

//overridden so that they can be processed. Each event displays a MessageBox

//identifying the event, the IP that generated the event, the IP that received the event and

//any other relevant data

//For the entire derived class, see (hyperlink)LMyDicomNet class

L_VOID   LMyDicomNet::OnReceiveAbort(L_UCHAR nSource, L_UCHAR nReason)
{
   CString strMsg;
   strMsg.Format(TEXT("*** OnReceiveAbort ***\nSource[%d]\nReason[%d]"), nSource, nReason);
   AfxMessageBox(strMsg);
}