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::IsActivated

Show in webframe

#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;
   }
Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.