diff 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
line wrap: on
line diff
--- a/OrthancServer/DicomProtocol/DicomServer.cpp	Thu Jan 30 16:58:03 2014 +0100
+++ b/OrthancServer/DicomProtocol/DicomServer.cpp	Fri Jan 31 17:45:27 2014 +0100
@@ -94,7 +94,7 @@
 #endif
 
 
-  void DicomServer::ServerThread(DicomServer* server)
+  void DicomServer::InitializeDictionary()
   {
     /* Disable "gethostbyaddr" (which results in memory leaks) and use raw IP addresses */
     dcmDisableGethostbyaddr.set(OFTrue);
@@ -148,7 +148,11 @@
         throw OrthancException(ErrorCode_InternalError);
       }
     }
+  }
 
+
+  void DicomServer::ServerThread(DicomServer* server)
+  {
     /* initialize network, i.e. create an instance of T_ASC_Network*. */
     T_ASC_Network *net;
     OFCondition cond = ASC_initializeNetwork