comparison OrthancServer/DicomProtocol/DicomServer.cpp @ 685:b01cc78caba4

possibility to disable the DICOM/HTTP servers
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 31 Jan 2014 17:45:27 +0100
parents f0232774b913
children 2d0a347e8cfc
comparison
equal deleted inserted replaced
684:96d8410c56cd 685:b01cc78caba4
92 } 92 }
93 93
94 #endif 94 #endif
95 95
96 96
97 void DicomServer::ServerThread(DicomServer* server) 97 void DicomServer::InitializeDictionary()
98 { 98 {
99 /* Disable "gethostbyaddr" (which results in memory leaks) and use raw IP addresses */ 99 /* Disable "gethostbyaddr" (which results in memory leaks) and use raw IP addresses */
100 dcmDisableGethostbyaddr.set(OFTrue); 100 dcmDisableGethostbyaddr.set(OFTrue);
101 101
102 dcmDataDict.clear(); 102 dcmDataDict.clear();
146 { 146 {
147 LOG(ERROR) << "The DICOM dictionary has not been correctly read"; 147 LOG(ERROR) << "The DICOM dictionary has not been correctly read";
148 throw OrthancException(ErrorCode_InternalError); 148 throw OrthancException(ErrorCode_InternalError);
149 } 149 }
150 } 150 }
151 151 }
152
153
154 void DicomServer::ServerThread(DicomServer* server)
155 {
152 /* initialize network, i.e. create an instance of T_ASC_Network*. */ 156 /* initialize network, i.e. create an instance of T_ASC_Network*. */
153 T_ASC_Network *net; 157 T_ASC_Network *net;
154 OFCondition cond = ASC_initializeNetwork 158 OFCondition cond = ASC_initializeNetwork
155 (NET_ACCEPTOR, OFstatic_cast(int, server->port_), /*opt_acse_timeout*/ 30, &net); 159 (NET_ACCEPTOR, OFstatic_cast(int, server->port_), /*opt_acse_timeout*/ 30, &net);
156 if (cond.bad()) 160 if (cond.bad())