Mercurial > hg > orthanc
diff OrthancFramework/Sources/WebServiceParameters.h @ 4522:017ab543e6ef
added field "Timeout" in "OrthancPeers" configuration option
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 23 Feb 2021 11:28:28 +0100 |
parents | d9473bd5ed43 |
children | fba1a8fff2b8 |
line wrap: on
line diff
--- a/OrthancFramework/Sources/WebServiceParameters.h Tue Feb 23 11:01:54 2021 +0100 +++ b/OrthancFramework/Sources/WebServiceParameters.h Tue Feb 23 11:28:28 2021 +0100 @@ -50,6 +50,7 @@ bool pkcs11Enabled_; Dictionary headers_; Dictionary userProperties_; + unsigned int timeout_; void FromSimpleFormat(const Json::Value& peer); @@ -129,5 +130,12 @@ #endif void FormatPublic(Json::Value& target) const; + + // Setting it to "0" will use "HttpClient::SetDefaultTimeout()" + void SetTimeout(uint32_t seconds); + + uint32_t GetTimeout() const; + + bool HasTimeout() const; }; }