Mercurial > hg > orthanc
comparison OrthancServer/DicomProtocol/DicomUserConnection.cpp @ 769:3f946e5c3802
ReusableDicomUserConnection
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 30 Apr 2014 13:49:41 +0200 |
parents | 0a2f8c707c78 |
children | 31cc399c7762 |
comparison
equal
deleted
inserted
replaced
766:0a2f8c707c78 | 769:3f946e5c3802 |
---|---|
690 { | 690 { |
691 // Don't reopen the connection | 691 // Don't reopen the connection |
692 return; | 692 return; |
693 } | 693 } |
694 | 694 |
695 LOG(INFO) << "Opening a DICOM SCU connection from AET \"" << GetLocalApplicationEntityTitle() | |
696 << "\" to AET \"" << GetDistantApplicationEntityTitle() << "\" on host " | |
697 << GetDistantHost() << ":" << GetDistantPort() | |
698 << " (manufacturer: " << EnumerationToString(GetDistantManufacturer()) << ")"; | |
699 | |
695 Check(ASC_initializeNetwork(NET_REQUESTOR, 0, /*opt_acse_timeout*/ 30, &pimpl_->net_)); | 700 Check(ASC_initializeNetwork(NET_REQUESTOR, 0, /*opt_acse_timeout*/ 30, &pimpl_->net_)); |
696 Check(ASC_createAssociationParameters(&pimpl_->params_, /*opt_maxReceivePDULength*/ ASC_DEFAULTMAXPDU)); | 701 Check(ASC_createAssociationParameters(&pimpl_->params_, /*opt_maxReceivePDULength*/ ASC_DEFAULTMAXPDU)); |
697 | 702 |
698 // Set this application's title and the called application's title in the params | 703 // Set this application's title and the called application's title in the params |
699 Check(ASC_setAPTitles(pimpl_->params_, localAet_.c_str(), distantAet_.c_str(), NULL)); | 704 Check(ASC_setAPTitles(pimpl_->params_, localAet_.c_str(), distantAet_.c_str(), NULL)); |