Mercurial > hg > orthanc
comparison OrthancServer/DicomProtocol/DicomUserConnection.cpp @ 943:3fb427ac3f53 plugins
integration mainline -> plugins
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 25 Jun 2014 11:40:41 +0200 |
parents | b3f6fb1130cd |
children | c2c28dd17e87 9d0c7301596e |
comparison
equal
deleted
inserted
replaced
939:ac42ca61eee6 | 943:3fb427ac3f53 |
---|---|
105 **/ | 105 **/ |
106 #define HOST_NAME_MAX 256 | 106 #define HOST_NAME_MAX 256 |
107 #endif | 107 #endif |
108 | 108 |
109 | 109 |
110 #if defined(__FreeBSD_kernel__) | 110 #if !defined(HOST_NAME_MAX) && defined(_POSIX_HOST_NAME_MAX) |
111 /** | 111 /** |
112 * TO IMPROVE: "_POSIX_HOST_NAME_MAX is only the minimum value that | 112 * TO IMPROVE: "_POSIX_HOST_NAME_MAX is only the minimum value that |
113 * HOST_NAME_MAX can ever have [...] Therefore you cannot allocate an | 113 * HOST_NAME_MAX can ever have [...] Therefore you cannot allocate an |
114 * array of size _POSIX_HOST_NAME_MAX, invoke gethostname() and expect | 114 * array of size _POSIX_HOST_NAME_MAX, invoke gethostname() and expect |
115 * that the result will fit." | 115 * that the result will fit." |
215 | 215 |
216 CheckStorageSOPClassesInvariant(); | 216 CheckStorageSOPClassesInvariant(); |
217 unsigned int presentationContextId = 1; | 217 unsigned int presentationContextId = 1; |
218 | 218 |
219 for (std::list<std::string>::const_iterator it = reservedStorageSOPClasses_.begin(); | 219 for (std::list<std::string>::const_iterator it = reservedStorageSOPClasses_.begin(); |
220 it != reservedStorageSOPClasses_.end(); it++) | 220 it != reservedStorageSOPClasses_.end(); ++it) |
221 { | 221 { |
222 RegisterStorageSOPClass(pimpl_->params_, presentationContextId, | 222 RegisterStorageSOPClass(pimpl_->params_, presentationContextId, |
223 *it, asPreferred, asFallback); | 223 *it, asPreferred, asFallback); |
224 } | 224 } |
225 | 225 |
226 for (std::set<std::string>::const_iterator it = storageSOPClasses_.begin(); | 226 for (std::set<std::string>::const_iterator it = storageSOPClasses_.begin(); |
227 it != storageSOPClasses_.end(); it++) | 227 it != storageSOPClasses_.end(); ++it) |
228 { | 228 { |
229 RegisterStorageSOPClass(pimpl_->params_, presentationContextId, | 229 RegisterStorageSOPClass(pimpl_->params_, presentationContextId, |
230 *it, asPreferred, asFallback); | 230 *it, asPreferred, asFallback); |
231 } | 231 } |
232 | 232 |
233 for (std::set<std::string>::const_iterator it = defaultStorageSOPClasses_.begin(); | 233 for (std::set<std::string>::const_iterator it = defaultStorageSOPClasses_.begin(); |
234 it != defaultStorageSOPClasses_.end(); it++) | 234 it != defaultStorageSOPClasses_.end(); ++it) |
235 { | 235 { |
236 RegisterStorageSOPClass(pimpl_->params_, presentationContextId, | 236 RegisterStorageSOPClass(pimpl_->params_, presentationContextId, |
237 *it, asPreferred, asFallback); | 237 *it, asPreferred, asFallback); |
238 } | 238 } |
239 } | 239 } |