Mercurial > hg > orthanc
comparison Resources/Samples/OrthancFramework/MicroService/Sample.cpp @ 2400:f235cc740c4b
remote access allowed in sample
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 01 Sep 2017 21:37:19 +0200 |
parents | 88402bd5dbf5 |
children |
comparison
equal
deleted
inserted
replaced
2399:971eb08553a9 | 2400:f235cc740c4b |
---|---|
44 | 44 |
45 { | 45 { |
46 Orthanc::MongooseServer httpServer; | 46 Orthanc::MongooseServer httpServer; |
47 httpServer.SetPortNumber(8000); | 47 httpServer.SetPortNumber(8000); |
48 httpServer.Register(rest); | 48 httpServer.Register(rest); |
49 httpServer.SetRemoteAccessAllowed(true); | |
49 httpServer.Start(); | 50 httpServer.Start(); |
50 | 51 |
51 LOG(WARNING) << "Micro-service started on port " << httpServer.GetPortNumber(); | 52 LOG(WARNING) << "Micro-service started on port " << httpServer.GetPortNumber(); |
52 Orthanc::SystemToolbox::ServerBarrier(); | 53 Orthanc::SystemToolbox::ServerBarrier(); |
53 } | 54 } |