Available in LEADTOOLS Medical Imaging toolkits. |
#include "ltdic.h"
L_UINT32 LDicomNet::GetCommBlockLengthISCL()
Returns the communication block length agreed upon during mutual authentication. This function is available in the PACS Imaging toolkits.
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
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: |
|
Topics: |
|
|
General Integrated Secure Communication Layer (ISCL) Information |
Example
L_INT LDicomNet_GetCommBlockLengthISCLExample() { L_INT nRet; // LMyDicomNet is derived from LDicomNet LMyDicomNet *pDicomNet; pDicomNet = new LMyDicomNet(TEXT(""), DICOM_SECURE_ISCL); nRet = pDicomNet->SetMaxCommBlockLengthISCL(8160); if(nRet != DICOM_SUCCESS) return nRet; // size of the blocks sent to the network // layer will be 8192 bytes (a 32-bytes header is added) nRet = pDicomNet->StartUp(); if(nRet != DICOM_SUCCESS) return nRet; nRet = pDicomNet->Connect(TEXT(""), 0, TEXT("10.0.5.31"), 2761); if(nRet != DICOM_SUCCESS) return nRet; // connect to a server running on local // computer at port 2761 L_INT nCommBlock = pDicomNet->GetCommBlockLengthISCL(); L_TCHAR str[80]; wsprintf(str, TEXT("Negotiated communication block size is %d"), nCommBlock); AfxMessageBox(str); return DICOM_SUCCESS; }