Products | Support | Send comments on this topic. | Email a link to this topic. | Back to Getting Started | Help Version 18.0.10.23
LEADTOOLS DICOM C++ Class Library Help

LDicomNet::OnReceiveReleaseRequest

Show in webframe

#include "ltdic.h"

virtual L_VOID LDicomNet::OnReceiveReleaseRequest(L_VOID)

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

Returns

None.

Comments

A call to this function is generated on an SCP when an SCU calls LDicomNet::SendReleaseRequest. For more information on DICOM Associate connections, refer to Creating a DICOM Associate Connection.

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

When the DICOM Association is no longer needed, it should be ended. 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::SendAssociateReject, LDicomNet::SendAssociateAccept, LDicomNet::SendAssociateRequest, LDicomNet::OnReceiveReleaseResponse, LDicomNet::OnReceiveAssociateAccept, LDicomNet::OnReceiveAssociateRequest

Topics:

Creating a DICOM Associate Connection

 

Receiving Messages

 

Diagram of a Basic SCU-SCP Set-up

 

Creating an SCU

 

Creating an SCP

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::OnReceiveReleaseRequest()
{
   CString strMsg;
   L_UINT lPeerPort;
   L_TCHAR  szPeerAddress[100];
   
   GetPeerInfo(szPeerAddress, 100,&lPeerPort);
   strMsg.Format(TEXT("*** OnReceiveReleaseRequest ***\nPeer[%s]"),szPeerAddress);  
   SendReleaseResponse();
   AfxMessageBox(strMsg);
}
Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.