LDicomNet::IsActivated

#include "ltdic.h"

L_BOOL LDicomNet::IsActivated(L_VOID)

Indicates whether the connection has been activated. This function is available in the Medical Suite Toolkit.

Returns

TRUE

The connection has been activated.

FALSE

The connection has not been activated.

Comments

A connection is activated by calling LDicomNet::Listen, LDicomNet::Connect, or LDicomNet::Accept. Therefore, if any of these functions have been called for the connection, this function will return TRUE. Otherwise it will return FALSE.

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::Connect, LDicomNet::Listen, LDicomNet::Accept, LDicomNet::LDicomNet, LDicomNet::StartUp

Topics:

Working with DICOM Network Connections

 

Creating a DICOM Network Connection

 

Creating an DICOM Associate Connection

Example

{
//LMyDicomNet is a class derived from LDicomNet
//m_pDicomNet is a member variable declared as:
//    LMyDicomNet *m_pDicomNet;
//
//In this example, assume
//1. m_pDicomNet points to a valid object
//2. A connection exists between client and server
//3. An associate request has been sent
   CString strMsg;
   BOOL bActivated, bConnected, bAssociated;
   
   bActivated  = m_pDicomNet->IsActivated();
   bConnected  = m_pDicomNet->IsConnected();
   bAssociated = m_pDicomNet->IsAssociated();
   
   strMsg.Format("IsActive[%d]\nIsConnected[%d]\nIsAssociated[%d]", bActivated, bConnected, bAssociated);
   AfxMessageBox(strMsg);
}