LDicomNet::SetMaxCommBlockLengthISCL

#include "ltdic.h"

L_UINT32 LDicomNet::SetMaxCommBlockLengthISCL (nMaxCommBlockLength);

L_UINT32 nMaxCommBlockLength;

/* maximum communication block length */

Sets the maximum communication block length that can be sent/received by the current entity. This function is available in the Medical Suite toolkits.

Parameter

Description

nMaxCommBlockLength

Size of the communication block length.

Returns

DICOM_SUCCESS

Success. The maximum communication block length was set. During mutual authentication, the client and server will agree to use the smaller communication block size of the two.

DICOM_ERROR

An error occurred. This usually occurs if the nMaxCommBlockLength was too small for the maximum standard packet size (168 bytes).

Comments

An ISCL communication block contains a 32-byte header, followed by data, if data is included.

Please note that the size of the ISCL packets is 32 bytes larger than the communication block length, because of the header.

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:

LDicomNet::SetDefaultSigningISCL, LDicomNet::SetDefaultEncryptionISCL, LDicomNet::SetAuthDataISCL, LDicomNet::SetMaxMessageLengthISCL, LDicomNet::SetMutualAuthAlgISCL, LDicomNet::SetMutualAuthKeyISCL, LDicomNet::SetIndexForMutualAuthISCL, LDicomNet::SetEncryptKeyISCL, LDicomNet::SetIndexForEncryptISCL, LDicomNet::GetCommBlockLengthISCL, Class Members

Topics:

Establishing an ISCL Line Connection

 

General Integrated Secure Communication Layer (ISCL) Information

Example

L_INT LDicomNet_SetMaxCommBlockLengthISCLExample()
{
   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)
   return DICOM_SUCCESS;
}