LDicomNet::GetServer

Summary

Returns the DICOM Network object of the SCP. This function is available in the Medical Imaging Suite Toolkit.

Syntax

#include "ltdic.h"

LDicomNet *LDicomNet::GetServer(L_VOID)

Returns

The DICOM Network object of the SCP connected to the SCU.

Comments

The object returned is valid only if the calling object is an SCU. If the calling object is an SCP, this function will return NULL.

Required DLLs and Libraries

Platforms

Win32, x64

See Also

Functions

Topics

Example

This example displays the number of clients connected to the some server.

L_INT LDicomNet_GetServerExample(LDicomNet *pNet) 
{ 
   L_TCHAR     szText[200] = {0}; 
   LDicomNet*  pServer = pNet->GetServer(); 
 
   if (pServer != NULL) 
   { 
      wsprintf(szText, TEXT("%u"), pServer->GetClientCount()); 
      OutputDebugString(szText); 
   } 
 
   return DICOM_SUCCESS; 
} 

Help Version 23.0.2024.7.1
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS DICOM C++ Class Library Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.