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: meichel $, $Date: 2005/12/08 15:48:09 $
00047 ** Source File:     $RCSfile: dulfsm.h,v $
00048 ** Revision:        $Revision: 1.4 $
00049 ** Status:      $State: Exp $
00050 */
00051 
00052 #ifndef DULFSM_H
00053 #define DULFSM_H
00054 
00055 #include "dcmtk/config/osconfig.h"    /* make sure OS specific configuration is included first */
00056 
00057 #define A_ASSOCIATE_REQ_LOCAL_USER  0
00058 #define TRANS_CONN_CONFIRM_LOCAL_USER   1
00059 #define A_ASSOCIATE_AC_PDU_RCV      2
00060 #define A_ASSOCIATE_RJ_PDU_RCV      3
00061 #define TRANS_CONN_INDICATION       4
00062 #define A_ASSOCIATE_RQ_PDU_RCV      5
00063 #define A_ASSOCIATE_RESPONSE_ACCEPT 6
00064 #define A_ASSOCIATE_RESPONSE_REJECT 7
00065 #define P_DATA_REQ          8
00066 #define P_DATA_TF_PDU_RCV       9
00067 #define A_RELEASE_REQ           10
00068 #define A_RELEASE_RQ_PDU_RCV        11
00069 #define A_RELEASE_RP_PDU_RCV        12
00070 #define A_RELEASE_RESP          13
00071 #define A_ABORT_REQ         14
00072 #define A_ABORT_PDU_RCV         15
00073 #define TRANS_CONN_CLOSED       16
00074 #define ARTIM_TIMER_EXPIRED     17
00075 #define INVALID_PDU             18
00076 #define DUL_NUMBER_OF_EVENTS        19
00077 
00078 #define NOSTATE     -1
00079 #define STATE1      1
00080 #define STATE2      2
00081 #define STATE3      3
00082 #define STATE4      4
00083 #define STATE5      5
00084 #define STATE6      6
00085 #define STATE7      7
00086 #define STATE8      8
00087 #define STATE9      9
00088 #define STATE10     10
00089 #define STATE11     11
00090 #define STATE12     12
00091 #define STATE13     13
00092 #define DUL_NUMBER_OF_STATES        13
00093 
00094 typedef enum {
00095     AE_1, AE_2, AE_3, AE_4, AE_5, AE_6, AE_7, AE_8,
00096     DT_1, DT_2,
00097     AA_1, AA_2, AA_2T, AA_3, AA_4, AA_5, AA_6, AA_7, AA_8,
00098     AR_1, AR_2, AR_3, AR_4, AR_5, AR_6, AR_7, AR_8, AR_9, AR_10,
00099     NOACTION
00100 }   DUL_FSM_ACTION;
00101 
00102 typedef struct {
00103     int event;
00104     const char *eventName;
00105 }   FSM_Event_Description;
00106 
00107 typedef struct {
00108     DUL_FSM_ACTION action;
00109     OFCondition (*actionFunction)(PRIVATE_NETWORKKEY **network,
00110                 PRIVATE_ASSOCIATIONKEY **association, 
00111                 int nextState, void *params);
00112     char actionName[64];
00113 }   FSM_FUNCTION;
00114 
00115 typedef struct {
00116     int event;
00117     int state;
00118     DUL_FSM_ACTION action;
00119     int nextState;
00120     char eventName[64];
00121     char actionName[64];
00122     OFCondition (*actionFunction)(PRIVATE_NETWORKKEY **network,
00123                 PRIVATE_ASSOCIATIONKEY **association, 
00124                 int nextState, void *params);
00125 
00126 }   FSM_ENTRY;
00127 
00128 #endif
00129 
00130 /*
00131 ** CVS Log
00132 ** $Log: dulfsm.h,v $
00133 ** Revision 1.4  2005/12/08 15:48:09  meichel
00134 ** Updated Makefiles to correctly install header files
00135 **
00136 ** Revision 1.3  2001/10/12 10:18:39  meichel
00137 ** Replaced the CONDITION types, constants and functions in the dcmnet module
00138 **   by an OFCondition based implementation which eliminates the global condition
00139 **   stack.  This is a major change, caveat emptor!
00140 **
00141 ** Revision 1.2  1999/03/29 11:20:07  meichel
00142 ** Cleaned up dcmnet code for char* to const char* assignments.
00143 **
00144 ** Revision 1.1.1.1  1996/03/26 18:38:46  hewett
00145 ** Initial Release.
00146 **
00147 **
00148 */
00149 


Generated on 20 Dec 2005 for OFFIS DCMTK Version 3.5.4 by Doxygen 1.4.5