GDCM 3.2.1

gdcmNetworkEvents.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright NumFOCUS
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0.txt
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 *
17 *=========================================================================*/
18/*
19 The NetworkEvents enumeration defines the inputs into the state of the network connection.
20
21 These inputs can come either from user input or input from other things on the socket,
22 ie, responses from the peer or ARTIM timeouts.
23
24 Note that this enumeration is not 'power of two', like the states, because you can't have
25 multiple simultaneous events. Multiple state outputs in transition tables, however, is possible.
26
27*/
28#ifndef GDCMNETWORKEVENTS_H
29#define GDCMNETWORKEVENTS_H
30
31 namespace gdcm {
32 namespace network{
33 typedef enum {
34 eAASSOCIATERequestLocalUser = 0,
35 eTransportConnConfirmLocal,
36 eASSOCIATE_ACPDUreceived,
37 eASSOCIATE_RJPDUreceived,
38 eTransportConnIndicLocal,
39 eAASSOCIATE_RQPDUreceived,
40 eAASSOCIATEresponseAccept,
41 eAASSOCIATEresponseReject,
42 ePDATArequest,
43 ePDATATFPDU,
44 eARELEASERequest,
45 eARELEASE_RQPDUReceivedOpen,
46 eARELEASE_RPPDUReceived,
47 eARELEASEResponse,
48 eAABORTRequest,
49 eAABORTPDUReceivedOpen,
50 eTransportConnectionClosed,
51 eARTIMTimerExpired,
52 eUnrecognizedPDUReceived,
53 eEventDoesNotExist
54 } EEventID;
55
56 const int cMaxEventID = eEventDoesNotExist;
57 }
58}
59
60#endif //NETWORKEVENTS_H
gdcm::network
Definition gdcmAAbortPDU.h:24
gdcm::network::cMaxEventID
const int cMaxEventID
Definition gdcmNetworkEvents.h:56
gdcm::network::EEventID
EEventID
Definition gdcmNetworkEvents.h:33
gdcm::network::eASSOCIATE_RJPDUreceived
@ eASSOCIATE_RJPDUreceived
Definition gdcmNetworkEvents.h:37
gdcm::network::ePDATATFPDU
@ ePDATATFPDU
Definition gdcmNetworkEvents.h:43
gdcm::network::eARELEASE_RPPDUReceived
@ eARELEASE_RPPDUReceived
Definition gdcmNetworkEvents.h:46
gdcm::network::eAASSOCIATEresponseReject
@ eAASSOCIATEresponseReject
Definition gdcmNetworkEvents.h:41
gdcm::network::eAASSOCIATEresponseAccept
@ eAASSOCIATEresponseAccept
Definition gdcmNetworkEvents.h:40
gdcm::network::eTransportConnConfirmLocal
@ eTransportConnConfirmLocal
Definition gdcmNetworkEvents.h:35
gdcm::network::eARTIMTimerExpired
@ eARTIMTimerExpired
Definition gdcmNetworkEvents.h:51
gdcm::network::eASSOCIATE_ACPDUreceived
@ eASSOCIATE_ACPDUreceived
Definition gdcmNetworkEvents.h:36
gdcm::network::eAABORTRequest
@ eAABORTRequest
Definition gdcmNetworkEvents.h:48
gdcm::network::eUnrecognizedPDUReceived
@ eUnrecognizedPDUReceived
Definition gdcmNetworkEvents.h:52
gdcm::network::eTransportConnIndicLocal
@ eTransportConnIndicLocal
Definition gdcmNetworkEvents.h:38
gdcm::network::eAABORTPDUReceivedOpen
@ eAABORTPDUReceivedOpen
Definition gdcmNetworkEvents.h:49
gdcm::network::ePDATArequest
@ ePDATArequest
Definition gdcmNetworkEvents.h:42
gdcm::network::eARELEASEResponse
@ eARELEASEResponse
Definition gdcmNetworkEvents.h:47
gdcm::network::eTransportConnectionClosed
@ eTransportConnectionClosed
Definition gdcmNetworkEvents.h:50
gdcm::network::eARELEASERequest
@ eARELEASERequest
Definition gdcmNetworkEvents.h:44
gdcm::network::eAASSOCIATERequestLocalUser
@ eAASSOCIATERequestLocalUser
Definition gdcmNetworkEvents.h:34
gdcm::network::eARELEASE_RQPDUReceivedOpen
@ eARELEASE_RQPDUReceivedOpen
Definition gdcmNetworkEvents.h:45
gdcm::network::eAASSOCIATE_RQPDUreceived
@ eAASSOCIATE_RQPDUreceived
Definition gdcmNetworkEvents.h:39
gdcm::network::eEventDoesNotExist
@ eEventDoesNotExist
Definition gdcmNetworkEvents.h:53
gdcm
Definition gdcmASN1.h:21