comparison Core/DicomNetworking/DicomServer.cpp @ 3330:10e2b9f4162f

more details in errors
author Alain Mazy <alain@mazy.be>
date Thu, 21 Mar 2019 16:37:35 +0100
parents 4e43e67f8ecf
children e327b44780bb 94f4a18a79cc
comparison
equal deleted inserted replaced
3329:98cd69135999 3330:10e2b9f4162f
326 OFCondition cond = ASC_initializeNetwork 326 OFCondition cond = ASC_initializeNetwork
327 (NET_ACCEPTOR, OFstatic_cast(int, port_), /*opt_acse_timeout*/ 30, &pimpl_->network_); 327 (NET_ACCEPTOR, OFstatic_cast(int, port_), /*opt_acse_timeout*/ 30, &pimpl_->network_);
328 if (cond.bad()) 328 if (cond.bad())
329 { 329 {
330 throw OrthancException(ErrorCode_DicomPortInUse, 330 throw OrthancException(ErrorCode_DicomPortInUse,
331 "cannot create network: " + std::string(cond.text())); 331 " (port = " + boost::lexical_cast<std::string>(port_) + ") cannot create network: " + std::string(cond.text()));
332 } 332 }
333 333
334 continue_ = true; 334 continue_ = true;
335 pimpl_->workers_.reset(new RunnableWorkersPool(4)); // Use 4 workers - TODO as a parameter? 335 pimpl_->workers_.reset(new RunnableWorkersPool(4)); // Use 4 workers - TODO as a parameter?
336 pimpl_->thread_ = boost::thread(ServerThread, this); 336 pimpl_->thread_ = boost::thread(ServerThread, this);