dcmnet/libsrc/dulfsm.h

00001 /*
00002           Copyright (C) 1993, 1994, RSNA and Washington University
00003 
00004           The software and supporting documentation for the Radiological
00005           Society of North America (RSNA) 1993, 1994 Digital Imaging and
00006           Communications in Medicine (DICOM) Demonstration were developed
00007           at the
00008                   Electronic Radiology Laboratory
00009                   Mallinckrodt Institute of Radiology
00010                   Washington University School of Medicine
00011                   510 S. Kingshighway Blvd.
00012                   St. Louis, MO 63110
00013           as part of the 1993, 1994 DICOM Central Test Node project for, and
00014           under contract with, the Radiological Society of North America.
00015 
00016           THIS SOFTWARE IS MADE AVAILABLE, AS IS, AND NEITHER RSNA NOR
00017           WASHINGTON UNIVERSITY MAKE ANY WARRANTY ABOUT THE SOFTWARE, ITS
00018           PERFORMANCE, ITS MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR
00019           USE, FREEDOM FROM ANY COMPUTER DISEASES OR ITS CONFORMITY TO ANY
00020           SPECIFICATION. THE ENTIRE RISK AS TO QUALITY AND PERFORMANCE OF
00021           THE SOFTWARE IS WITH THE USER.
00022 
00023           Copyright of the software and supporting documentation is
00024           jointly owned by RSNA and Washington University, and free access
00025           is hereby granted as a license to use this software, copy this
00026           software and prepare derivative works based upon this software.
00027           However, any distribution of this software source code or
00028           supporting documentation or derivative works (source code and
00029           supporting documentation) must include the three paragraphs of
00030           the copyright notice.
00031 */
00032 /* Copyright marker.  Copyright will be inserted above.  Do not remove */
00033 /*
00034 ** @$=@$=@$=
00035 */
00036 /*
00037 **          DICOM 93
00038 **        Electronic Radiology Laboratory
00039 **      Mallinckrodt Institute of Radiology
00040 **    Washington University School of Medicine
00041 **
00042 ** Module Name(s):
00043 ** Author, Date:  Stephen M. Moore, 11-May-92
00044 ** Intent:        This module defines structures and constants needed
00045 **                to implement the DICOM Upper Layer state machine.
00046 ** Last Update:   $Author: joergr $, $Date: 2010-10-14 13:19:29 $
00047 ** Revision:      $Revision: 1.5 $
00048 ** Status:        $State: Exp $
00049 */
00050 
00051 #ifndef DULFSM_H
00052 #define DULFSM_H
00053 
00054 #include "dcmtk/config/osconfig.h"    /* make sure OS specific configuration is included first */
00055 
00056 #define A_ASSOCIATE_REQ_LOCAL_USER  0
00057 #define TRANS_CONN_CONFIRM_LOCAL_USER   1
00058 #define A_ASSOCIATE_AC_PDU_RCV      2
00059 #define A_ASSOCIATE_RJ_PDU_RCV      3
00060 #define TRANS_CONN_INDICATION       4
00061 #define A_ASSOCIATE_RQ_PDU_RCV      5
00062 #define A_ASSOCIATE_RESPONSE_ACCEPT 6
00063 #define A_ASSOCIATE_RESPONSE_REJECT 7
00064 #define P_DATA_REQ          8
00065 #define P_DATA_TF_PDU_RCV       9
00066 #define A_RELEASE_REQ           10
00067 #define A_RELEASE_RQ_PDU_RCV        11
00068 #define A_RELEASE_RP_PDU_RCV        12
00069 #define A_RELEASE_RESP          13
00070 #define A_ABORT_REQ         14
00071 #define A_ABORT_PDU_RCV         15
00072 #define TRANS_CONN_CLOSED       16
00073 #define ARTIM_TIMER_EXPIRED     17
00074 #define INVALID_PDU             18
00075 #define DUL_NUMBER_OF_EVENTS        19
00076 
00077 #define NOSTATE     -1
00078 #define STATE1      1
00079 #define STATE2      2
00080 #define STATE3      3
00081 #define STATE4      4
00082 #define STATE5      5
00083 #define STATE6      6
00084 #define STATE7      7
00085 #define STATE8      8
00086 #define STATE9      9
00087 #define STATE10     10
00088 #define STATE11     11
00089 #define STATE12     12
00090 #define STATE13     13
00091 #define DUL_NUMBER_OF_STATES        13
00092 
00093 typedef enum {
00094     AE_1, AE_2, AE_3, AE_4, AE_5, AE_6, AE_7, AE_8,
00095     DT_1, DT_2,
00096     AA_1, AA_2, AA_2T, AA_3, AA_4, AA_5, AA_6, AA_7, AA_8,
00097     AR_1, AR_2, AR_3, AR_4, AR_5, AR_6, AR_7, AR_8, AR_9, AR_10,
00098     NOACTION
00099 }   DUL_FSM_ACTION;
00100 
00101 typedef struct {
00102     int event;
00103     const char *eventName;
00104 }   FSM_Event_Description;
00105 
00106 typedef struct {
00107     DUL_FSM_ACTION action;
00108     OFCondition (*actionFunction)(PRIVATE_NETWORKKEY **network,
00109                 PRIVATE_ASSOCIATIONKEY **association,
00110                 int nextState, void *params);
00111     char actionName[64];
00112 }   FSM_FUNCTION;
00113 
00114 typedef struct {
00115     int event;
00116     int state;
00117     DUL_FSM_ACTION action;
00118     int nextState;
00119     char eventName[64];
00120     char actionName[64];
00121     OFCondition (*actionFunction)(PRIVATE_NETWORKKEY **network,
00122                 PRIVATE_ASSOCIATIONKEY **association,
00123                 int nextState, void *params);
00124 
00125 }   FSM_ENTRY;
00126 
00127 #endif
00128 
00129 /*
00130 ** CVS Log
00131 ** $Log: dulfsm.h,v $
00132 ** Revision 1.5  2010-10-14 13:19:29  joergr
00133 ** Updated copyright header. Added reference to COPYRIGHT file.
00134 **
00135 ** Revision 1.4  2005/12/08 15:48:09  meichel
00136 ** Updated Makefiles to correctly install header files
00137 **
00138 ** Revision 1.3  2001/10/12 10:18:39  meichel
00139 ** Replaced the CONDITION types, constants and functions in the dcmnet module
00140 **   by an OFCondition based implementation which eliminates the global condition
00141 **   stack.  This is a major change, caveat emptor!
00142 **
00143 ** Revision 1.2  1999/03/29 11:20:07  meichel
00144 ** Cleaned up dcmnet code for char* to const char* assignments.
00145 **
00146 ** Revision 1.1.1.1  1996/03/26 18:38:46  hewett
00147 ** Initial Release.
00148 **
00149 **
00150 */
00151 


Generated on 30 Nov 2010 for OFFIS DCMTK Version 3.5.5 20101130 by Doxygen 1.5.1