Available in LEADTOOLS Medical Imaging toolkits. |
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 |
Win32, x64
See Also
Functions: |
LDicomNet::Connect, LDicomNet::Listen, LDicomNet::Accept, LDicomNet::LDicomNet, LDicomNet::StartUp |
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; }