dcmnet/include/dcmtk/dcmnet/dul.h

00001 /*
00002  *
00003  *  Copyright (C) 1994-2010, OFFIS e.V.
00004  *  All rights reserved.  See COPYRIGHT file for details.
00005  *
00006  *  This software and supporting documentation were partly developed by
00007  *
00008  *    OFFIS e.V.
00009  *    R&D Division Health
00010  *    Escherweg 2
00011  *    D-26121 Oldenburg, Germany
00012  *
00013  *  For further copyrights, see the following paragraphs.
00014  *
00015  */
00016 
00017 /*
00018           Copyright (C) 1993, 1994, RSNA and Washington University
00019 
00020           The software and supporting documentation for the Radiological
00021           Society of North America (RSNA) 1993, 1994 Digital Imaging and
00022           Communications in Medicine (DICOM) Demonstration were developed
00023           at the
00024                   Electronic Radiology Laboratory
00025                   Mallinckrodt Institute of Radiology
00026                   Washington University School of Medicine
00027                   510 S. Kingshighway Blvd.
00028                   St. Louis, MO 63110
00029           as part of the 1993, 1994 DICOM Central Test Node project for, and
00030           under contract with, the Radiological Society of North America.
00031 
00032           THIS SOFTWARE IS MADE AVAILABLE, AS IS, AND NEITHER RSNA NOR
00033           WASHINGTON UNIVERSITY MAKE ANY WARRANTY ABOUT THE SOFTWARE, ITS
00034           PERFORMANCE, ITS MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR
00035           USE, FREEDOM FROM ANY COMPUTER DISEASES OR ITS CONFORMITY TO ANY
00036           SPECIFICATION. THE ENTIRE RISK AS TO QUALITY AND PERFORMANCE OF
00037           THE SOFTWARE IS WITH THE USER.
00038 
00039           Copyright of the software and supporting documentation is
00040           jointly owned by RSNA and Washington University, and free access
00041           is hereby granted as a license to use this software, copy this
00042           software and prepare derivative works based upon this software.
00043           However, any distribution of this software source code or
00044           supporting documentation or derivative works (source code and
00045           supporting documentation) must include the three paragraphs of
00046           the copyright notice.
00047 */
00048 
00049 /*
00050 **        DICOM 93
00051 **        Electronic Radiology Laboratory
00052 **      Mallinckrodt Institute of Radiology
00053 **    Washington University School of Medicine
00054 **
00055 ** Module Name(s):
00056 ** Author, Date:  Stephen M. Moore, 14-Apr-1993
00057 ** Intent:        This file defines the public structures and constants
00058 **                and the function prototypes for the DUL (DICOM Upper
00059 **                Layer) facility.
00060 ** Last Update:   $Author: joergr $, $Date: 2010-12-01 08:26:10 $
00061 ** Revision:      $Revision: 1.31 $
00062 ** Status:        $State: Exp $
00063 */
00064 
00065 
00066 #ifndef DUL_IS_IN
00067 #define DUL_IS_IN 1
00068 
00069 #include "dcmtk/config/osconfig.h"    /* make sure OS specific configuration is included first */
00070 
00071 #include "dcmtk/ofstd/ofglobal.h"
00072 #include "dcmtk/ofstd/oftypes.h"
00073 #include "dcmtk/ofstd/ofcast.h"
00074 #include "dcmtk/dcmnet/extneg.h"
00075 #include "dcmtk/dcmnet/dicom.h"
00076 #include "dcmtk/dcmnet/dcuserid.h"
00077 
00078 class DcmTransportConnection;
00079 class DcmTransportLayer;
00080 class LST_HEAD;
00081 
00088 extern OFGlobal<OFBool> dcmDisableGethostbyaddr;   /* default OFFalse */
00089 
00095 extern OFGlobal<OFBool> dcmStrictRoleSelection;   /* default OFFalse */
00096 
00100 extern OFGlobal<Sint32> dcmConnectionTimeout;   /* default -1 */
00101 
00106 extern OFGlobal<int> dcmExternalSocketHandle;   /* default -1 */
00107 
00114 extern OFGlobal<const char *> dcmTCPWrapperDaemonName;   /* default NULL */
00115 
00116 /* Global option flag for compatibility with DCMTK releases prior to version 3.0.
00117  * Default (0) is automatic handling, which should work in most cases.
00118  */
00119 extern OFGlobal<unsigned long> dcmEnableBackwardCompatibility;
00120 
00121 #ifndef DUL_KEYS
00122 #define DUL_KEYS 1
00123 typedef void DUL_NETWORKKEY;
00124 typedef void DUL_ASSOCIATIONKEY;
00125 typedef unsigned char DUL_PRESENTATIONCONTEXTID;
00126 #endif
00127 
00131 /*  Define a structure containing fixed length fields that can
00132  *  be used for requesting or accepting an association.  The
00133  *  lengths of "titles" and "names" are specified by the DICOM
00134  *  protocol document.  The fields in the structure are made
00135  *  longer to allow for zero-terminators.  DICOM doesn't know
00136  *  about node names, but the DUL_ package needs them.
00137  */
00138 
00139 #define DUL_LEN_TITLE  OFstatic_cast(size_t, 16)  /* required by DICOM protocol */
00140 #define DUL_LEN_NAME   OFstatic_cast(size_t, 64)  /* required by DICOM protocol */
00141 #define DUL_LEN_UID    OFstatic_cast(size_t, 64)  /* required by DICOM protocol */
00142 #define DUL_LEN_NODE   OFstatic_cast(size_t, 127) /* should be "big enough" */
00143 
00144 
00145 /* DICOM PDU Types */
00146 
00147 #define DUL_TYPEASSOCIATERQ  OFstatic_cast(unsigned char, 0x01)
00148 #define DUL_TYPEASSOCIATEAC  OFstatic_cast(unsigned char, 0x02)
00149 #define DUL_TYPEASSOCIATERJ  OFstatic_cast(unsigned char, 0x03)
00150 #define DUL_TYPEDATA         OFstatic_cast(unsigned char, 0x04)
00151 #define DUL_TYPERELEASERQ    OFstatic_cast(unsigned char, 0x05)
00152 #define DUL_TYPERELEASERP    OFstatic_cast(unsigned char, 0x06)
00153 #define DUL_TYPEABORT        OFstatic_cast(unsigned char, 0x07)
00154 
00155 #define DUL_MAXTYPE          OFstatic_cast(unsigned char, 0x07)
00156 
00157 class DUL_ModeCallback
00158 {
00159 public:
00160 
00162   virtual ~DUL_ModeCallback() {}
00163 
00167   virtual void callback(unsigned long mode) = 0;
00168 };
00169 
00170 typedef struct {
00171     char applicationContextName[DUL_LEN_NAME + 1];
00172     char callingAPTitle[DUL_LEN_TITLE + 1];
00173     char calledAPTitle[DUL_LEN_TITLE + 1];
00174     char respondingAPTitle[DUL_LEN_TITLE + 1];
00175     unsigned long maxPDU;
00176     unsigned short result;
00177     unsigned short resultSource;
00178     unsigned short diagnostic;
00179     char callingPresentationAddress[64];
00180     char calledPresentationAddress[64];
00181     LST_HEAD *requestedPresentationContext;
00182     LST_HEAD *acceptedPresentationContext;
00183     unsigned short maximumOperationsInvoked;
00184     unsigned short maximumOperationsPerformed;
00185     char callingImplementationClassUID[DICOM_UI_LENGTH + 1];
00186     char callingImplementationVersionName[16 + 1];
00187     char calledImplementationClassUID[DICOM_UI_LENGTH + 1];
00188     char calledImplementationVersionName[16 + 1];
00189     unsigned long peerMaxPDU;
00190     SOPClassExtendedNegotiationSubItemList *requestedExtNegList;
00191     SOPClassExtendedNegotiationSubItemList *acceptedExtNegList;
00192     UserIdentityNegotiationSubItemRQ *reqUserIdentNeg;
00193     UserIdentityNegotiationSubItemAC *ackUserIdentNeg;
00194 
00195     OFBool useSecureLayer;
00196 }   DUL_ASSOCIATESERVICEPARAMETERS;
00197 
00198 typedef enum {
00199     DUL_SC_ROLE_NONE,
00200     DUL_SC_ROLE_DEFAULT,
00201     DUL_SC_ROLE_SCU,
00202     DUL_SC_ROLE_SCP,
00203     DUL_SC_ROLE_SCUSCP
00204 }   DUL_SC_ROLE;
00205 
00206 #define DUL_PRESENTATION_ACCEPT                 0
00207 #define DUL_PRESENTATION_REJECT_USER            1
00208 #define DUL_PRESENTATION_REJECT_NOREASON        2
00209 #define DUL_PRESENTATION_REJECT_ABSTRACT_SYNTAX 3
00210 #define DUL_PRESENTATION_REJECT_TRANSFER_SYNTAX 4
00211 
00212 typedef OFList<char *> DUL_TRANSFERSYNTAXLIST;
00213 
00214 typedef struct {
00215     void *reserved[2];
00216     DUL_PRESENTATIONCONTEXTID presentationContextID;
00217     char abstractSyntax[DUL_LEN_UID + 1];
00218     LST_HEAD *proposedTransferSyntax;
00219     char acceptedTransferSyntax[DUL_LEN_UID + 1];
00220     unsigned char result;
00221     DUL_SC_ROLE proposedSCRole;
00222     DUL_SC_ROLE acceptedSCRole;
00223 }   DUL_PRESENTATIONCONTEXT;
00224 
00225 typedef struct {
00226     void *reserved[2];
00227     char transferSyntax[DUL_LEN_UID + 1];
00228 }   DUL_TRANSFERSYNTAX;
00229 
00230 typedef struct dul_abortitems {
00231     unsigned char result;
00232     unsigned char source;
00233     unsigned char reason;
00234 }   DUL_ABORTITEMS;
00235 
00236 typedef enum {
00237     DUL_COMMANDPDV,   /* A command PDV inside a data PDU */
00238     DUL_DATASETPDV
00239 }   /* A data set PDV inside a data PDU */
00240     DUL_DATAPDV;
00241 
00242 typedef enum {
00243     DUL_BLOCK,      /* Block on an operation (read, request) */
00244     DUL_NOBLOCK
00245 }   /* Or return immediately if nothing avail */
00246     DUL_BLOCKOPTIONS;
00247 
00248 typedef struct {
00249     unsigned long fragmentLength;
00250     unsigned char presentationContextID;
00251     DUL_DATAPDV pdvType;
00252     OFBool lastPDV;
00253     void *data;
00254 }   DUL_PDV;
00255 
00256 typedef struct {
00257     unsigned long count;
00258     void *scratch;
00259     unsigned long scratchLength;
00260     DUL_ABORTITEMS abort;
00261     DUL_PDV *pdv;
00262 }   DUL_PDVLIST;
00263 
00264 /*  Define the bits that go in the options field for InitializeNetwork
00265 **
00266 **  The low two bits define the byte order of messages at the DICOM
00267 **  level.  This does not define the order of user data inside of a
00268 **  DICOM PDU.
00269 */
00270 
00271 #define DUL_ORDERMASK          0x03  /* The bottom two bits */
00272 #define DUL_ORDERLITTLEENDIAN  0x01
00273 #define DUL_ORDERBIGENDIAN     0x02
00274 
00275 #define DUL_DOMAINMASK         0x04
00276 #define DUL_FULLDOMAINNAME     0x04
00277 
00278 #define DUL_AEREQUESTOR        "AE REQUESTOR"
00279 #define DUL_AEACCEPTOR         "AE ACCEPTOR"
00280 #define DUL_AEBOTH             "AE BOTH"
00281 
00282 /*  These macros define results and reasons for rejecting an association
00283 **  request.  Result is permanent or transient.  There are a number of
00284 **  different reasons for rejecting requests that occur at different layers
00285  */
00286 #define DUL_REJ_RSLTPERMANENT  0x01
00287 #define DUL_REJ_RSLTTRANSIENT  0x02
00288 
00289 /*  These macros define parameters used to construct an ABORT PDU.
00290 **  These include the source of the abort (SCU or SCP) and the
00291 **  reason for the abort.
00292 */
00293 
00294 #define DUL_SCU_INITIATED_ABORT           0x00
00295 #define DUL_SCP_INITIATED_ABORT           0x02
00296 
00297 #define DUL_ABORTSERVICEUSER              0x00
00298 #define DUL_ABORTSERVICEPROVIDER          0x02
00299 
00300 #define DUL_ABORTNOREASON                 0x00
00301 #define DUL_ABORTUNRECOGNIZEDPDU          0x01
00302 #define DUL_ABORTUNEXPECTEDPDU            0x02
00303 #define DUL_ABORTUNRECOGNIZEDPDUPARAM     0x04
00304 #define DUL_ABORTUNEXPECTEDPDUPARAM       0x05
00305 #define DUL_ABORTINVALIDPDUPARAM          0x06
00306 
00307 /*  These macros define parameters used to construct a REJECT PDU.
00308 **  These include the source of the reject (DICOM UL service-user,
00309 **  (DICOM UL service-provider) and the reason for the reject.
00310 */
00311 #define DUL_REJECT_PERMANENT              0x01
00312 #define DUL_REJECT_TRANSIENT              0x02
00313 
00314 #define DUL_ULSU_REJECT                   0x01
00315 #define DUL_ULSP_ACSE_REJECT              0x02
00316 #define DUL_ULSP_PRESENTATION_REJECT      0x03
00317 
00318 #define DUL_ULSU_REJ_NOREASON             0x01
00319 #define DUL_ULSU_REJ_UNSUP_APP_CTX_NAME   0x02
00320 #define DUL_ULSU_REJ_UNREC_CALLING_TITLE  0x03
00321 #define DUL_ULSU_REJ_UNREC_CALLED_TITLE   0x07
00322 
00323 #define DUL_ULSP_ACSE_REJ_NOREASON        0x01
00324 #define DUL_ULSP_ACSE_UNSUP_PROTOCOL      0x02
00325 
00326 #define DUL_ULSP_PRES_REJ_TEMP_CONGEST    0x01
00327 #define DUL_ULSP_PRES_REJ_LIMIT           0x02
00328 
00329 #define DUL_ABORTNOREASON                 0x00
00330 #define DUL_ABORTUNRECOGNIZEDPDU          0x01
00331 #define DUL_ABORTUNEXPECTEDPDU            0x02
00332 #define DUL_ABORTUNRECOGNIZEDPDUPARAM     0x04
00333 #define DUL_ABORTUNEXPECTEDPDUPARAM       0x05
00334 #define DUL_ABORTINVALIDPDUPARAM          0x06
00335 
00336 /* Define a set of constants and types that let the user get information
00337 ** about the Association
00338 */
00339 
00340 typedef enum {
00341     DUL_K_INTEGER,    /* An integer type */
00342     DUL_K_STRING      /* A string type */
00343 }   DUL_DATA_TYPE;
00344 
00345 typedef enum {
00346     DUL_K_MAX_PDV_XMIT
00347 }   DUL_ASSOCIATION_PARAMETER;
00348 
00349 #define DUL_TIMEOUT 180
00350 
00351 /* Operating mode flags as defined in the 1993 toolkit specification.
00352 ** Needed for backward compatibility with DCMTK releases prior to 3.0
00353 ** (and possibly older CTN releases).
00354 */
00355 
00356 #define DUL_DULCOMPAT     2768240730UL
00357 #define DUL_DIMSECOMPAT   655360UL
00358 #define DUL_MAXPDUCOMPAT  4278190335UL
00359 
00360 /* Define the function prototypes for this facility.
00361 **
00362 ** First set of functions are for establishing the network and associations.
00363 */
00364 
00365 OFCondition
00366 DUL_AcknowledgeAssociationRQ(
00367   DUL_ASSOCIATIONKEY ** association,
00368   DUL_ASSOCIATESERVICEPARAMETERS * params,
00369   int activatePDUStorage);
00370 
00371 OFCondition
00372 DUL_InitializeNetwork(
00373   const char *mode,
00374   void *param,
00375   int timeout,
00376   unsigned long
00377   options,
00378   DUL_NETWORKKEY ** network);
00379 
00380 OFCondition
00381 DUL_ReceiveAssociationRQ(
00382   DUL_NETWORKKEY ** net,
00383   DUL_BLOCKOPTIONS blk,
00384   int timeout,
00385   DUL_ASSOCIATESERVICEPARAMETERS * parameters,
00386   DUL_ASSOCIATIONKEY ** association,
00387   int activatePDUStorage);
00388 
00389 OFCondition
00390 DUL_RejectAssociationRQ(
00391   DUL_ASSOCIATIONKEY ** association,
00392   DUL_ABORTITEMS * params,
00393   int activatePDUStorage);
00394 
00395 OFCondition
00396 DUL_RequestAssociation(
00397   DUL_NETWORKKEY ** network,
00398   DUL_ASSOCIATESERVICEPARAMETERS * params,
00399   DUL_ASSOCIATIONKEY ** association,
00400   int activatePDUStorage);
00401 
00402 /* Define functions for releasing/aborting Associations.
00403 */
00404 OFCondition DUL_AbortAssociation(DUL_ASSOCIATIONKEY ** association);
00405 OFCondition DUL_DropAssociation(DUL_ASSOCIATIONKEY ** association);
00406 OFCondition DUL_DropNetwork(DUL_NETWORKKEY ** network);
00407 OFCondition DUL_ReleaseAssociation(DUL_ASSOCIATIONKEY ** association);
00408 OFCondition DUL_AcknowledgeRelease(DUL_ASSOCIATIONKEY ** association);
00409 
00410 /* Functions for reading/write PDVs inside P DATA PDUs.
00411 */
00412 OFCondition
00413 DUL_ReadPDVs(DUL_ASSOCIATIONKEY ** association,
00414        DUL_PDVLIST * pdvList, DUL_BLOCKOPTIONS block, int timeout);
00415 OFCondition
00416 DUL_WritePDVs(DUL_ASSOCIATIONKEY ** association,
00417         DUL_PDVLIST * pdvList);
00418 OFCondition DUL_NextPDV(DUL_ASSOCIATIONKEY ** association, DUL_PDV * pdv);
00419 
00420 
00421 /* Miscellaneous functions.
00422 */
00423 OFCondition
00424 DUL_AssociationParameter(DUL_ASSOCIATIONKEY ** association,
00425        DUL_ASSOCIATION_PARAMETER param, DUL_DATA_TYPE type,
00426        void *address, size_t length);
00427 OFCondition
00428 DUL_MakePresentationCtx(DUL_PRESENTATIONCONTEXT ** ctx,
00429          DUL_SC_ROLE proposedSCRole, DUL_SC_ROLE acceptedSCRole,
00430 DUL_PRESENTATIONCONTEXTID ctxID, unsigned char reason, const char *abstractSyntax,
00431       const char *transferSyntax, ...);
00432 OFString& DUL_DumpParams(OFString& str, DUL_ASSOCIATESERVICEPARAMETERS * params);
00433 OFString& DUL_DumpConnectionParameters(OFString& str, DUL_ASSOCIATIONKEY *association);
00434 
00435 OFCondition DUL_ClearServiceParameters(DUL_ASSOCIATESERVICEPARAMETERS * params);
00436 void DUL_DefaultServiceParameters(DUL_ASSOCIATESERVICEPARAMETERS * params);
00437 OFString& dumpExtNegList(OFString& str, SOPClassExtendedNegotiationSubItemList& lst);
00438 
00439 /*
00440 ** Additional functions (from dulextra.cc) needed to support
00441 ** selecting amongst several concurrent associations.
00442 ** Andrew Hewett, Institute OFFIS, Oldenburg, Germany.
00443 */
00444 
00445 OFBool
00446 DUL_dataWaiting(DUL_ASSOCIATIONKEY * callerAssociation, int timeout);
00447 int
00448 DUL_networkSocket(DUL_NETWORKKEY * callerNet);
00449 OFBool
00450 DUL_associationWaiting(DUL_NETWORKKEY * callerNet, int timeout);
00451 
00452 /*
00453  * functions allowing to retrieve raw A-ASSOCIATE PDUs from the DUL layer
00454  */
00455 void DUL_activateAssociatePDUStorage(DUL_ASSOCIATIONKEY *dulassoc);
00456 void DUL_returnAssociatePDUStorage(DUL_ASSOCIATIONKEY *dulassoc, void *& pdu, unsigned long& pdusize);
00457 
00458 /* get pointer to transport connection from opaque association pointer */
00459 DcmTransportConnection *DUL_getTransportConnection(DUL_ASSOCIATIONKEY * callerAssociation);
00460 
00461 /* change transport layer */
00462 OFCondition DUL_setTransportLayer(DUL_NETWORKKEY *callerNetworkKey, DcmTransportLayer *newLayer, int takeoverOwnership);
00463 
00464 /* activate compatibility mode and callback */
00465 void DUL_activateCompatibilityMode(DUL_ASSOCIATIONKEY *dulassoc, unsigned long mode);
00466 void DUL_activateCallback(DUL_ASSOCIATIONKEY *dulassoc, DUL_ModeCallback *cb);
00467 
00468 /*
00469  * function allowing to retrieve the peer certificate from the DUL layer
00470  */
00471 unsigned long DUL_getPeerCertificateLength(DUL_ASSOCIATIONKEY *dulassoc);
00472 unsigned long DUL_getPeerCertificate(DUL_ASSOCIATIONKEY *dulassoc, void *buf, unsigned long bufLen);
00473 
00474 /*
00475  * functions for multi-process servers
00476  */
00477 
00483 OFBool DUL_processIsForkedChild();
00484 
00489 void DUL_markProcessAsForkedChild();
00490 
00503 void DUL_requestForkOnTransportConnectionReceipt(int argc, char *argv[]);
00504 
00505 
00507 void DUL_DumpParams(DUL_ASSOCIATESERVICEPARAMETERS * params);
00509 void DUL_DumpConnectionParameters(DUL_ASSOCIATIONKEY *association, STD_NAMESPACE ostream& outstream);
00511 void dumpExtNegList(SOPClassExtendedNegotiationSubItemList& lst);
00512 
00513 #endif
00514 
00515 /*
00516 ** CVS Log
00517 ** $Log: dul.h,v $
00518 ** Revision 1.31  2010-12-01 08:26:10  joergr
00519 ** Added OFFIS copyright header (beginning with the year 1994).
00520 **
00521 ** Revision 1.30  2010-10-14 13:17:22  joergr
00522 ** Updated copyright header. Added reference to COPYRIGHT file.
00523 **
00524 ** Revision 1.29  2010-08-26 09:28:02  joergr
00525 ** Fixed incorrect behavior of association acceptors during SCP/SCU role
00526 ** selection negotiation.
00527 ** Introduced new global flag which allows for rejecting presentation contexts
00528 ** in case of an unsuccessful SCP/SCU role selection (disabled by default).
00529 **
00530 ** Revision 1.28  2009-12-08 16:37:52  joergr
00531 ** Fixed inconsistent source code formatting.
00532 **
00533 ** Revision 1.27  2009-11-18 11:53:58  uli
00534 ** Switched to logging mechanism provided by the "new" oflog module.
00535 **
00536 ** Revision 1.26  2008-04-17 15:28:33  onken
00537 ** Reworked and extended User Identity Negotiation code.
00538 **
00539 ** Revision 1.25  2007-09-07 08:49:12  onken
00540 ** Added basic support for Extended Negotiation of User Identity.
00541 **
00542 ** Revision 1.24  2006/08/15 16:04:29  meichel
00543 ** Updated the code in module dcmnet to correctly compile when
00544 **   all standard C++ classes remain in namespace std.
00545 **
00546 ** Revision 1.23  2005/12/12 15:15:08  meichel
00547 ** Added missing include dependency
00548 **
00549 ** Revision 1.22  2005/12/09 14:48:35  meichel
00550 ** Added missing virtual destructors
00551 **
00552 ** Revision 1.21  2005/12/08 16:02:23  meichel
00553 ** Changed include path schema for all DCMTK header files
00554 **
00555 ** Revision 1.20  2005/11/25 11:31:11  meichel
00556 ** StoreSCP now supports multi-process mode both on Posix and Win32 platforms
00557 **   where a separate client process is forked for each incoming association.
00558 **
00559 ** Revision 1.19  2004/02/25 12:31:15  meichel
00560 ** Added global option flag for compatibility with very old DCMTK releases in the
00561 **   DICOM upper layer and ACSE code. Default is automatic handling, which should
00562 **   work in most cases.
00563 **
00564 ** Revision 1.18  2003/08/14 09:01:37  meichel
00565 ** Adapted type casts to new-style typecast operators defined in ofcast.h
00566 **
00567 ** Revision 1.17  2003/06/10 13:37:36  meichel
00568 ** Added support for TCP wrappers in DICOM network layer
00569 **
00570 ** Revision 1.16  2003/06/06 13:07:29  meichel
00571 ** Introduced global flag dcmExternalSocketHandle which allows
00572 **   to pass an already opened socket file descriptor to dcmnet.
00573 **
00574 ** Revision 1.15  2003/06/02 16:44:11  meichel
00575 ** Renamed local variables to avoid name clashes with STL
00576 **
00577 ** Revision 1.14  2002/11/28 16:57:36  meichel
00578 ** Added global flag dcmConnectionTimeout that defines a timeout for
00579 **   outgoing association requests in the DICOM upper layer.
00580 **
00581 ** Revision 1.13  2001/11/27 09:54:33  wilkens
00582 ** Updated storescp. 6 new options (--output-directory, --sort-conc-studies,
00583 ** --exec-on-reception, --exec-on-eostudy, --rename-on-eostudy, and
00584 ** --eostudy-timeout) implemented (requirements from GO-Kard).
00585 **
00586 ** Revision 1.12  2001/10/12 10:18:27  meichel
00587 ** Replaced the CONDITION types, constants and functions in the dcmnet module
00588 **   by an OFCondition based implementation which eliminates the global condition
00589 **   stack.  This is a major change, caveat emptor!
00590 **
00591 ** Revision 1.11  2001/09/26 12:28:59  meichel
00592 ** Implemented changes in dcmnet required by the adaptation of dcmdata
00593 **   to class OFCondition.  Removed some unused code.
00594 **
00595 ** Revision 1.10  2001/06/01 11:02:02  meichel
00596 ** Implemented global flag and command line option to disable reverse
00597 **   DNS hostname lookup using gethostbyaddr when accepting associations.
00598 **
00599 ** Revision 1.9  2000/10/10 12:06:54  meichel
00600 ** Updated transport layer error codes and routines for printing
00601 **   connection parameters.
00602 **
00603 ** Revision 1.8  2000/08/10 14:50:54  meichel
00604 ** Added initial OpenSSL support.
00605 **
00606 ** Revision 1.7  2000/06/07 08:57:22  meichel
00607 ** dcmnet ACSE routines now allow to retrieve a binary copy of the A-ASSOCIATE
00608 **   RQ/AC/RJ PDUs, e.g. for logging purposes.
00609 **
00610 ** Revision 1.6  1999/04/19 08:39:27  meichel
00611 ** Added experimental support for extended SOP class negotiation.
00612 **
00613 ** Revision 1.5  1999/03/29 11:19:59  meichel
00614 ** Cleaned up dcmnet code for char* to const char* assignments.
00615 **
00616 ** Revision 1.4  1998/06/29 12:14:27  meichel
00617 ** Removed some name clashes (e.g. local variable with same
00618 **   name as class member) to improve maintainability.
00619 **   Applied some code purifications proposed by the gcc 2.8.1 -Weffc++ option.
00620 **
00621 ** Revision 1.3  1997/07/21 08:40:11  andreas
00622 ** - Replace all boolean types (BOOLEAN, CTNBOOLEAN, DICOM_BOOL, BOOL)
00623 **   with one unique boolean type OFBool.
00624 **
00625 ** Revision 1.2  1997/01/13 15:53:02  hewett
00626 ** Added missing function prototypes (required for CodeWarrior 10).
00627 **
00628 ** Revision 1.1.1.1  1996/03/26 18:38:44  hewett
00629 ** Initial Release.
00630 **
00631 **
00632 */


Generated on 6 Jan 2011 for OFFIS DCMTK Version 3.6.0 by Doxygen 1.5.1