L_DicomGetCommBlockLengthISCL

#include "ltdic.h"

L_LTDIC_API L_UINT32 L_DicomGetCommBlockLengthISCL(hNet)

Returns the communication block length agreed upon during mutual authentication.

Parameters

HDICOMNET hNet

Handle to an existing DICOM Network. This is the handle returned from the L_DicomCreateNet function.

Returns

The communication block length agreed upon during mutual authentication.

Comments

Using a block size that is too small or too big could impact performance.

Required DLLs and Libraries

Platforms

Win32, x64.

See Also

Functions

Topics

Example

L_INT DicomGetCommBlockLengthISCLExample(HWND hWnd) 
{ 
   HDICOMNET hDicomNet; 
   L_INT nRet; 
 
   hDicomNet = L_DicomCreateNet (TEXT(""), DICOM_SECURE_ISCL); 
   nRet = L_DicomSetMaxCommBlockLengthISCL (hDicomNet, 8160); 
   if (nRet != DICOM_SUCCESS) 
      return nRet; 
 
   // size of the blocks sent to network layer will be 8192 bytes (a 32-byte header is added) 
 
   nRet = L_DicomConnect (hDicomNet, NULL, 0, TEXT("127.0.0.1"), 2761); 
   if (nRet != DICOM_SUCCESS) 
      return nRet; 
   // connect to a server running on local computer at port 2761 
 
   int nCommBlock = L_DicomGetCommBlockLengthISCL(hDicomNet); 
   L_TCHAR str[50]; 
   wsprintf(str, TEXT("Negotiated communication block size is %d"), nCommBlock); 
   MessageBox(hWnd, str, TEXT(""), MB_OK); 
 
   return DICOM_SUCCESS; 
} 
Help Version 20.0.2019.9.20
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2019 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS DICOM C API Help