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

Value Meaning
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

Platforms

Win32, x64

See Also

Functions

Topics

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 20.0.2020.4.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS DICOM C++ Class Library Help