Mercurial > hg > orthanc
comparison OrthancFramework/Sources/DicomNetworking/DicomAssociationParameters.h @ 4451:f4dbdb2dcba6
new configuration option "MaximumPduLength" to tune the maximum PDU length
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 18 Jan 2021 14:51:52 +0100 |
parents | 4a4e33c9082d |
children | 82a314325351 |
comparison
equal
deleted
inserted
replaced
4450:9bf2f9e0af47 | 4451:f4dbdb2dcba6 |
---|---|
37 RemoteModalityParameters remote_; | 37 RemoteModalityParameters remote_; |
38 uint32_t timeout_; | 38 uint32_t timeout_; |
39 std::string ownPrivateKeyPath_; | 39 std::string ownPrivateKeyPath_; |
40 std::string ownCertificatePath_; | 40 std::string ownCertificatePath_; |
41 std::string trustedCertificatesPath_; | 41 std::string trustedCertificatesPath_; |
42 unsigned int maximumPduLength_; | |
42 | 43 |
43 static void CheckHost(const std::string& host); | 44 static void CheckHost(const std::string& host); |
44 | 45 |
45 void SetDefaultParameters(); | 46 void SetDefaultParameters(); |
46 | 47 |
91 const std::string& GetOwnPrivateKeyPath() const; | 92 const std::string& GetOwnPrivateKeyPath() const; |
92 | 93 |
93 const std::string& GetOwnCertificatePath() const; | 94 const std::string& GetOwnCertificatePath() const; |
94 | 95 |
95 const std::string& GetTrustedCertificatesPath() const; | 96 const std::string& GetTrustedCertificatesPath() const; |
97 | |
98 unsigned int GetMaximumPduLength() const; | |
99 | |
100 void SetMaximumPduLength(unsigned int pdu); | |
96 | 101 |
97 void SerializeJob(Json::Value& target) const; | 102 void SerializeJob(Json::Value& target) const; |
98 | 103 |
99 static DicomAssociationParameters UnserializeJob(const Json::Value& serialized); | 104 static DicomAssociationParameters UnserializeJob(const Json::Value& serialized); |
100 | 105 |
104 | 109 |
105 static void SetDefaultOwnCertificatePath(const std::string& privateKeyPath, | 110 static void SetDefaultOwnCertificatePath(const std::string& privateKeyPath, |
106 const std::string& certificatePath); | 111 const std::string& certificatePath); |
107 | 112 |
108 static void SetDefaultTrustedCertificatesPath(const std::string& path); | 113 static void SetDefaultTrustedCertificatesPath(const std::string& path); |
114 | |
115 static void CheckMaximumPduLength(unsigned int pdu); | |
116 | |
117 static void SetDefaultMaximumPduLength(unsigned int pdu); | |
118 | |
119 static unsigned int GetDefaultMaximumPduLength(); | |
109 }; | 120 }; |
110 } | 121 } |