diff OrthancServer/main.cpp @ 128:2a24f43d9dca

fix for windows
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 05 Oct 2012 17:49:50 +0200
parents 2d96cb181f45
children 1969ff16457c
line wrap: on
line diff
--- a/OrthancServer/main.cpp	Fri Oct 05 17:45:13 2012 +0200
+++ b/OrthancServer/main.cpp	Fri Oct 05 17:49:50 2012 +0200
@@ -141,12 +141,12 @@
       DicomServer dicomServer;
       dicomServer.SetCalledApplicationEntityTitleCheck(GetGlobalBoolParameter("DicomCheckCalledAet", false));
       dicomServer.SetStoreRequestHandlerFactory(storeScp);
-      dicomServer.SetPort(GetGlobalIntegerParameter("DicomPort", 4242));
+      dicomServer.SetPortNumber(GetGlobalIntegerParameter("DicomPort", 4242));
       dicomServer.SetApplicationEntityTitle(GetGlobalStringParameter("DicomAet", "ORTHANC"));
 
       // HTTP server
       MongooseServer httpServer;
-      httpServer.SetPort(GetGlobalIntegerParameter("HttpPort", 8000));
+      httpServer.SetPortNumber(GetGlobalIntegerParameter("HttpPort", 8000));
       httpServer.SetRemoteAccessAllowed(GetGlobalBoolParameter("RemoteAccessAllowed", false));
 
       httpServer.SetAuthenticationEnabled(GetGlobalBoolParameter("AuthenticationEnabled", false));
@@ -163,8 +163,8 @@
         httpServer.SetSslEnabled(false);
       }
 
-      LOG(INFO) << "DICOM server listening on port: " << dicomServer.GetPort();
-      LOG(INFO) << "HTTP server listening on port: " << httpServer.GetPort();
+      LOG(INFO) << "DICOM server listening on port: " << dicomServer.GetPortNumber();
+      LOG(INFO) << "HTTP server listening on port: " << httpServer.GetPortNumber();
 
 #if ORTHANC_STANDALONE == 1
       httpServer.RegisterHandler(new EmbeddedResourceHttpHandler("/app", EmbeddedResources::ORTHANC_EXPLORER));