GlobalObjects
Loading...
Searching...
No Matches
TcpTypes.h
Go to the documentation of this file.
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
This file exists so that the definition of NULL_PTR is centrally available.
For each library, here 'TcpLib' there is an error file.
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