LDicomNet::GetCommBlockLengthISCL
#include "ltdic.h"
L_UINT32 LDicomNet::GetCommBlockLengthISCL()
Returns the communication block length agreed upon during mutual authentication. This function is available in the Medical Suite 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 |
See Also
Functions: |
|
Topics: |
|
|
General Integrated Secure Communication Layer (ISCL) Information |
Example
{
// LMyDicomNet is derived from LDicomNet
LMyDicomNet *pDicomNet;
pDicomNet = new LMyDicomNet("", DICOM_SECURE_ISCL);
pDicomNet->SetMaxCommBlockLengthISCL(8160);
// size of the blocks sent to the network
// layer will be 8192 bytes (a 32-bytes header is added)
pDicomNet->Connect(NULL, 0, "127.0.0.1", 2761);
// connect to a server running on local
// computer at port 2761
int nCommBlock = pDicomNet->GetCommBlockLengthISCL();
char str[40];
sprintf(str, "Negotiated communication block size is %d", nCommBlock);
AfxMessageBox(str);
}