GlobalObjects
Lade ...
Suche ...
Keine Treffer
TcpTypes.h
gehe zur Dokumentation dieser Datei
1#ifndef INC_TCPTYPES_H
2#define INC_TCPTYPES_H
3//-----------------------------------------------------------------------------
40//-----------------------------------------------------------------------------
41#include "TcpErr.h"
42#include "EuDef_NULL_PTR.h"
43#include <string>
44//-----------------------------------------------------------------------------
45// DLL Define __TCP_EXPORT_DLL
46#if defined(_MSC_VER) || defined(__MINGW32__) || defined(__MINGW64__)
47 #ifdef __TCP_EXPORT_DLL
48 #define __tcp_export_dll __declspec(dllexport)
49 #if defined(_MSC_VER)
50 #pragma message ( "Benutze Export defines fuer __tcp_export_dll" )
51 #endif
52 #else
53 #define __tcp_export_dll //__declspec(dllimport)
54 #if defined(_MSC_VER)
55 #pragma message ( "Benutze Import defines fuer __tcp_export_dll" )
56 #endif
57 #endif
58#elif defined(__GNUC__)
59 #ifdef __TCP_EXPORT_DLL
60 #define __tcp_export_dll //__attribute__ ((visibility("default")))
61 #else
62 #define __tcp_export_dll //__attribute__ ((visibility ("hidden")))
63 #endif
64#endif
65//=============================================================================
66//-----------------------------------------------------------------------------
67namespace tcp
68{
69 //---------------------------------------------------------------------------
94 const std::string sTcpVersion = "1.0.3";
95 //---------------------------------------------------------------------------
105 #define DEFAULT_DATASIZE 4096
106 //---------------------------------------------------------------------------
186 //---------------------------------------------------------------------------
187} // namespace tcp
188//-----------------------------------------------------------------------------
189#endif
Damit die Definition von NULL_PTR und NUM_PTR zentral verfügbar ist, gibt es diese Datei.
Für jede Bibliothek, hier 'TcpLib' gibt es eine Fehler-Datei.
Definition TcpClient.h:48
ActionCode
Definition TcpTypes.h:118
@ ACTION_REQUEST_WITH_RESPONSE
Definition TcpTypes.h:162
@ ACTION_INFO
Definition TcpTypes.h:184
@ ACTION_UNDEF
Definition TcpTypes.h:128
@ ACTION_REQUEST
Definition TcpTypes.h:150
@ ACTION_SYNC_DATA_SIZE
Definition TcpTypes.h:138
@ ACTION_RESPONSE
Definition TcpTypes.h:174
const std::string sTcpVersion
Definition TcpTypes.h:94