00001 /* 00002 * 00003 * Copyright (C) 1998-2010, OFFIS e.V. 00004 * All rights reserved. See COPYRIGHT file for details. 00005 * 00006 * This software and supporting documentation were developed by 00007 * 00008 * OFFIS e.V. 00009 * R&D Division Health 00010 * Escherweg 2 00011 * D-26121 Oldenburg, Germany 00012 * 00013 * 00014 * Module: dcmnet 00015 * 00016 * Author: Marco Eichelberg 00017 * 00018 * Purpose: 00019 * classes: DcmTransportLayer 00020 * 00021 * Last Update: $Author: joergr $ 00022 * Update Date: $Date: 2010-10-14 13:17:22 $ 00023 * CVS/RCS Revision: $Revision: 1.8 $ 00024 * Status: $State: Exp $ 00025 * 00026 * CVS/RCS Log at end of file 00027 * 00028 */ 00029 00030 #ifndef DCMLAYER_H 00031 #define DCMLAYER_H 00032 00033 #include "dcmtk/config/osconfig.h" /* make sure OS specific configuration is included first */ 00034 #include "dcmtk/ofstd/oftypes.h" 00035 #include "dcmtk/ofstd/ofstring.h" 00036 00037 #define INCLUDE_UNISTD 00038 #include "dcmtk/ofstd/ofstdinc.h" 00039 00043 enum DcmTransportLayerStatus 00044 { 00047 TCS_ok, 00048 00052 TCS_noConnection, 00053 00056 TCS_tlsError, 00057 00060 TCS_illegalCall, 00061 00064 TCS_unspecifiedError 00065 }; 00066 00067 class DcmTransportConnection; 00068 00074 class DcmTransportLayer 00075 { 00076 public: 00077 00082 DcmTransportLayer(int /* networkRole */ ) { /* empty */ } 00083 00085 virtual ~DcmTransportLayer(); 00086 00098 virtual DcmTransportConnection *createConnection(int openSocket, OFBool useSecureLayer); 00099 00100 private: 00101 00103 DcmTransportLayer(const DcmTransportLayer&); 00104 00106 DcmTransportLayer& operator=(const DcmTransportLayer&); 00107 00108 }; 00109 00110 00111 #endif 00112 00113 /* 00114 * $Log: dcmlayer.h,v $ 00115 * Revision 1.8 2010-10-14 13:17:22 joergr 00116 * Updated copyright header. Added reference to COPYRIGHT file. 00117 * 00118 * Revision 1.7 2005/12/08 16:02:16 meichel 00119 * Changed include path schema for all DCMTK header files 00120 * 00121 * Revision 1.6 2004/08/03 11:42:43 meichel 00122 * Headers libc.h and unistd.h are now included via ofstdinc.h 00123 * 00124 * Revision 1.5 2003/12/05 10:39:45 joergr 00125 * Removed leading underscore characters from preprocessor symbols (reserved 00126 * symbols). 00127 * 00128 * Revision 1.4 2003/06/12 15:16:10 joergr 00129 * Fixed inconsistent API documentation reported by Doxygen. 00130 * 00131 * Revision 1.3 2001/06/01 15:50:04 meichel 00132 * Updated copyright header 00133 * 00134 * Revision 1.2 2000/10/10 12:06:53 meichel 00135 * Updated transport layer error codes and routines for printing 00136 * connection parameters. 00137 * 00138 * Revision 1.1 2000/08/10 14:50:52 meichel 00139 * Added initial OpenSSL support. 00140 * 00141 * 00142 */ 00143