diff OrthancFramework/Sources/DicomNetworking/DicomServer.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 5209a9ff6e38
children 82a314325351
line wrap: on
line diff
--- a/OrthancFramework/Sources/DicomNetworking/DicomServer.h	Thu Jan 14 09:13:29 2021 +0100
+++ b/OrthancFramework/Sources/DicomNetworking/DicomServer.h	Mon Jan 18 14:51:52 2021 +0100
@@ -86,8 +86,10 @@
     std::string  ownPrivateKeyPath_;
     std::string  ownCertificatePath_;
     std::string  trustedCertificatesPath_;
+    unsigned int maximumPduLength_;
 
     static void ServerThread(DicomServer* server,
+                             unsigned int maximumPduLength,
                              bool useDicomTls);
 
   public:
@@ -154,6 +156,8 @@
     
     void SetTrustedCertificatesPath(const std::string& path);
     const std::string& GetTrustedCertificatesPath() const;
+
+    unsigned int GetMaximumPduLength() const;
+    void SetMaximumPduLength(unsigned int pdu);
   };
-
 }