SetMaxCommBlockLengthISCL Example for C++ 6.0 and later
{
m_pLEADDicomNet->NetworkSecurityMode = DICOM_SECURE_ISCL;
m_pLEADDicomNet->StartUp ();
m_pLEADDicomNet->SetMaxCommBlockLengthISCL (m_pLEADDicomNet->GethNet(), 8160);
// size of the blocks sent to network layer will be 8192 bytes (a 32-byte header is added)
// other initializations...
m_pLEADDicomNet->Connect ("", 0, "127.0.0.1", 2761);
//connect to a server running on local computer at port 2761
long nBlockLen = m_pLEADDicomNet->GetCommBlockLengthISCL (m_pLEADDicomNet->GethNet());
CString strMsg;
strMsg.Format("Negotiated communication block size is %ld", nBlockLen);
AfxMessageBox(strMsg);
}