diff 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
line wrap: on
line diff
--- a/OrthancFramework/Sources/DicomNetworking/DicomAssociationParameters.h	Thu Jan 14 09:13:29 2021 +0100
+++ b/OrthancFramework/Sources/DicomNetworking/DicomAssociationParameters.h	Mon Jan 18 14:51:52 2021 +0100
@@ -39,6 +39,7 @@
     std::string               ownPrivateKeyPath_;
     std::string               ownCertificatePath_;
     std::string               trustedCertificatesPath_;
+    unsigned int              maximumPduLength_;
 
     static void CheckHost(const std::string& host);
 
@@ -93,6 +94,10 @@
     const std::string& GetOwnCertificatePath() const;
 
     const std::string& GetTrustedCertificatesPath() const;
+
+    unsigned int GetMaximumPduLength() const;
+
+    void SetMaximumPduLength(unsigned int pdu);
     
     void SerializeJob(Json::Value& target) const;
 
@@ -106,5 +111,11 @@
                                              const std::string& certificatePath);
 
     static void SetDefaultTrustedCertificatesPath(const std::string& path);
+
+    static void CheckMaximumPduLength(unsigned int pdu);
+
+    static void SetDefaultMaximumPduLength(unsigned int pdu);
+
+    static unsigned int GetDefaultMaximumPduLength();
   };
 }