Mercurial > hg > orthanc
comparison OrthancServer/Internals/CommandDispatcher.h @ 2134:ddc75c6c712d
Avoid hard crash if not enough memory
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 09 Nov 2016 12:04:09 +0100 |
parents | 879f3be759ef |
children | a3a65de1840f |
comparison
equal
deleted
inserted
replaced
2133:15ae532af70e | 2134:ddc75c6c712d |
---|---|
59 CommandDispatcher(const DicomServer& server, | 59 CommandDispatcher(const DicomServer& server, |
60 T_ASC_Association* assoc, | 60 T_ASC_Association* assoc, |
61 const std::string& remoteIp, | 61 const std::string& remoteIp, |
62 const std::string& remoteAet, | 62 const std::string& remoteAet, |
63 const std::string& calledAet, | 63 const std::string& calledAet, |
64 IApplicationEntityFilter* filter) : | 64 IApplicationEntityFilter* filter); |
65 server_(server), | |
66 assoc_(assoc), | |
67 remoteIp_(remoteIp), | |
68 remoteAet_(remoteAet), | |
69 calledAet_(calledAet), | |
70 filter_(filter) | |
71 { | |
72 associationTimeout_ = server.GetAssociationTimeout(); | |
73 elapsedTimeSinceLastCommand_ = 0; | |
74 } | |
75 | 65 |
76 virtual ~CommandDispatcher() | 66 virtual ~CommandDispatcher(); |
77 { | |
78 AssociationCleanup(assoc_); | |
79 } | |
80 | 67 |
81 virtual bool Step(); | 68 virtual bool Step(); |
82 }; | 69 }; |
83 | 70 |
84 OFCondition EchoScp(T_ASC_Association * assoc, | 71 OFCondition EchoScp(T_ASC_Association * assoc, |