Mercurial > hg > orthanc
comparison OrthancServer/main.cpp @ 125:2d96cb181f45
fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 05 Oct 2012 17:44:12 +0200 |
parents | 80ca409f232f |
children | 2a24f43d9dca |
comparison
equal
deleted
inserted
replaced
124:1267071a697e | 125:2d96cb181f45 |
---|---|
139 { | 139 { |
140 // DICOM server | 140 // DICOM server |
141 DicomServer dicomServer; | 141 DicomServer dicomServer; |
142 dicomServer.SetCalledApplicationEntityTitleCheck(GetGlobalBoolParameter("DicomCheckCalledAet", false)); | 142 dicomServer.SetCalledApplicationEntityTitleCheck(GetGlobalBoolParameter("DicomCheckCalledAet", false)); |
143 dicomServer.SetStoreRequestHandlerFactory(storeScp); | 143 dicomServer.SetStoreRequestHandlerFactory(storeScp); |
144 dicomServer.SetPortNumber(GetGlobalIntegerParameter("DicomPort", 4242)); | 144 dicomServer.SetPort(GetGlobalIntegerParameter("DicomPort", 4242)); |
145 dicomServer.SetApplicationEntityTitle(GetGlobalStringParameter("DicomAet", "ORTHANC")); | 145 dicomServer.SetApplicationEntityTitle(GetGlobalStringParameter("DicomAet", "ORTHANC")); |
146 | 146 |
147 // HTTP server | 147 // HTTP server |
148 MongooseServer httpServer; | 148 MongooseServer httpServer; |
149 httpServer.SetPort(GetGlobalIntegerParameter("HttpPort", 8000)); | 149 httpServer.SetPort(GetGlobalIntegerParameter("HttpPort", 8000)); |
160 } | 160 } |
161 else | 161 else |
162 { | 162 { |
163 httpServer.SetSslEnabled(false); | 163 httpServer.SetSslEnabled(false); |
164 } | 164 } |
165 | |
166 LOG(INFO) << "DICOM server listening on port: " << dicomServer.GetPort(); | |
167 LOG(INFO) << "HTTP server listening on port: " << httpServer.GetPort(); | |
165 | 168 |
166 #if ORTHANC_STANDALONE == 1 | 169 #if ORTHANC_STANDALONE == 1 |
167 httpServer.RegisterHandler(new EmbeddedResourceHttpHandler("/app", EmbeddedResources::ORTHANC_EXPLORER)); | 170 httpServer.RegisterHandler(new EmbeddedResourceHttpHandler("/app", EmbeddedResources::ORTHANC_EXPLORER)); |
168 #else | 171 #else |
169 httpServer.RegisterHandler(new FilesystemHttpHandler("/app", ORTHANC_PATH "/OrthancExplorer")); | 172 httpServer.RegisterHandler(new FilesystemHttpHandler("/app", ORTHANC_PATH "/OrthancExplorer")); |