LDicomNet::IsActivated

#include "ltdic.h"

L_BOOL LDicomNet::IsActivated(L_VOID)

Indicates whether the connection has been activated. This function is available in the PACS Imaging 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

Platforms

Win32, x64

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

L_INT LDicomNet__IsActivatedExample(LMyDicomNet *m_pDicomNet) 
{ 
   //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(TEXT("IsActive[%d]\nIsConnected[%d]\nIsAssociated[%d]"), bActivated, bConnected, bAssociated); 
   AfxMessageBox(strMsg); 
   return DICOM_SUCCESS; 
} 

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
LEADTOOLS DICOM C++ Class Library Help