LDicomNet::OnReceiveReleaseResponse

#include "ltdic.h"

virtual L_VOID LDicomNet::OnReceiveReleaseResponse(L_VOID)

Notifies a connection that a Release Response message was received. This function is available in the PACS Imaging Toolkit.

Returns

None.

Comments

A call to this function is generated on an SCU when an SCP calls LDicomNet::SendReleaseResponse.

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

A DICOM Association must be established between an SCU and an SCP before any DICOM messages or data can be transmitted between them. For more information on creating a DICOM Association, refer to Creating a DICOM Associate Connection.

When a DICOM Associate Connection is no longer needed, the connection should be closed. For more information, 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

Platforms

Win32, x64

See Also

Functions:

LDicomNet::SendReleaseResponse, LDicomNet::SendReleaseRequest, LDicomNet::SendAssociateAccept, LDicomNet::SendAssociateReject, LDicomNet::SendAssociateRequest, LDicomNet::OnReceiveReleaseRequest, LDicomNet::OnReceiveAssociateReject, LDicomNet::OnReceiveAssociateRequest

Topics:

Receiving Messages

 

Creating a DICOM Associate Connection

 

Creating an SCU

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::OnReceiveReleaseResponse()
{
   CString strMsg;
   L_UINT lPeerPort;
   L_TCHAR  szPeerAddress[100];
   
   GetPeerInfo(szPeerAddress, 100,
    &lPeerPort);
   
   strMsg.Format(TEXT("*** OnReceiveReleaseResponse ***\nPeer[%s]"), szPeerAddress);
   AfxMessageBox(strMsg);
}