GDCM  2.2.0
gdcmNetworkEvents.h
Go to the documentation of this file.
00001 /*=========================================================================
00002  *
00003  *  Copyright Insight Software Consortium
00004  *
00005  *  Licensed under the Apache License, Version 2.0 (the "License");
00006  *  you may not use this file except in compliance with the License.
00007  *  You may obtain a copy of the License at
00008  *
00009  *         http://www.apache.org/licenses/LICENSE-2.0.txt
00010  *
00011  *  Unless required by applicable law or agreed to in writing, software
00012  *  distributed under the License is distributed on an "AS IS" BASIS,
00013  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014  *  See the License for the specific language governing permissions and
00015  *  limitations under the License.
00016  *
00017  *=========================================================================*/
00018 /*
00019 The NetworkEvents enumeration defines the inputs into the state of the network connection.
00020 
00021 These inputs can come either from user input or input from other things on the socket,
00022 ie, responses from the peer or ARTIM timeouts.
00023 
00024 Note that this enumeration is not 'power of two', like the states, because you can't have
00025 multiple simultaneous events.  Multiple state outputs in transition tables, however, is possible.
00026 
00027 */
00028 #ifndef GDCMNETWORKEVENTS_H
00029 #define GDCMNETWORKEVENTS_H
00030 
00031 namespace gdcm {
00032   namespace network{
00033     typedef enum {
00034       eAASSOCIATERequestLocalUser = 0,
00035       eTransportConnConfirmLocal,
00036       eASSOCIATE_ACPDUreceived,
00037       eASSOCIATE_RJPDUreceived,
00038       eTransportConnIndicLocal,
00039       eAASSOCIATE_RQPDUreceived,
00040       eAASSOCIATEresponseAccept,
00041       eAASSOCIATEresponseReject,
00042       ePDATArequest,
00043       ePDATATFPDU,
00044       eARELEASERequest,
00045       eARELEASE_RQPDUReceivedOpen,
00046       eARELEASE_RPPDUReceived,
00047       eARELEASEResponse,
00048       eAABORTRequest,
00049       eAABORTPDUReceivedOpen,
00050       eTransportConnectionClosed,
00051       eARTIMTimerExpired,
00052       eUnrecognizedPDUReceived,
00053       eEventDoesNotExist
00054     } EEventID;
00055 
00056     const int cMaxEventID = eEventDoesNotExist;
00057   }
00058 }
00059 
00060 #endif //NETWORKEVENTS_H

Generated on Tue Mar 27 2012 18:19:32 for GDCM by doxygen 1.8.0
SourceForge.net Logo