LDicomNet::OnReceiveAssociateAccept

#include "ltdic.h"

virtual L_VOID LDicomNet::OnReceiveAssociateAccept(pPDU)

LDicomAssociate *pPDU;

/* a DICOM Associate object */

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

Parameter

Description

hPDU

A DICOM Associate object.

Returns

None.

Comments

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

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

See Also

Functions:

LDicomNet::SendAssociateAccept, LDicomNet::SendAssociateReject, LDicomNet::SendAssociateRequest, LDicomNet::OnReceiveAssociateReject, LDicomNet::OnReceiveAssociateRequest

Topics:

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::OnReceiveAssociateAccept(LDicomAssociate *pPDU)
{
   //Client receives this event
   CString strMsg;
   strMsg.Format("*** OnReceiveAssociateAccept ***\nIsAssociated[%d]",IsAssociated());
   AfxMessageBox(strMsg);
}