Mercurial > hg > orthanc
comparison 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 |
comparison
equal
deleted
inserted
replaced
4521:60e4f94ec30f | 4522:017ab543e6ef |
---|---|
48 std::string certificateKeyFile_; | 48 std::string certificateKeyFile_; |
49 std::string certificateKeyPassword_; | 49 std::string certificateKeyPassword_; |
50 bool pkcs11Enabled_; | 50 bool pkcs11Enabled_; |
51 Dictionary headers_; | 51 Dictionary headers_; |
52 Dictionary userProperties_; | 52 Dictionary userProperties_; |
53 unsigned int timeout_; | |
53 | 54 |
54 void FromSimpleFormat(const Json::Value& peer); | 55 void FromSimpleFormat(const Json::Value& peer); |
55 | 56 |
56 void FromAdvancedFormat(const Json::Value& peer); | 57 void FromAdvancedFormat(const Json::Value& peer); |
57 | 58 |
127 #if ORTHANC_SANDBOXED == 0 | 128 #if ORTHANC_SANDBOXED == 0 |
128 void CheckClientCertificate() const; | 129 void CheckClientCertificate() const; |
129 #endif | 130 #endif |
130 | 131 |
131 void FormatPublic(Json::Value& target) const; | 132 void FormatPublic(Json::Value& target) const; |
133 | |
134 // Setting it to "0" will use "HttpClient::SetDefaultTimeout()" | |
135 void SetTimeout(uint32_t seconds); | |
136 | |
137 uint32_t GetTimeout() const; | |
138 | |
139 bool HasTimeout() const; | |
132 }; | 140 }; |
133 } | 141 } |