TcpLib
Loading...
Searching...
No Matches
TcpTypes.h
Go to the documentation of this file.
1#ifndef INC_TCPTYPES_H
2#define INC_TCPTYPES_H
3//-----------------------------------------------------------------------------
47//-----------------------------------------------------------------------------
48#include "TcpErr.h"
49#include <string>
50//-----------------------------------------------------------------------------
51// DLL Define __TCP_EXPORT_DLL
52#if defined(_MSC_VER) || defined(__MINGW32__) || defined(__MINGW64__)
53 #ifdef __TCP_EXPORT_DLL
54 #define __tcp_export_dll __declspec(dllexport)
55 #if defined(_MSC_VER)
56 #pragma message ( "Benutze Export defines fuer __tcp_export_dll" )
57 #endif
58 #else
59 #define __tcp_export_dll //__declspec(dllimport)
60 #if defined(_MSC_VER)
61 #pragma message ( "Benutze Import defines fuer __tcp_export_dll" )
62 #endif
63 #endif
64#elif defined(__GNUC__)
65 #ifdef __TCP_EXPORT_DLL
66 #define __tcp_export_dll //__attribute__ ((visibility("default")))
67 #else
68 #define __tcp_export_dll //__attribute__ ((visibility ("hidden")))
69 #endif
70#endif
71//=============================================================================
72//-----------------------------------------------------------------------------
73namespace tcp
74{
75 //---------------------------------------------------------------------------
100 const std::string sTcpVersion = "1.0.3";
101 //---------------------------------------------------------------------------
111 #define DEFAULT_DATASIZE 4096
112 //---------------------------------------------------------------------------
192 //---------------------------------------------------------------------------
193} // namespace tcp
194//-----------------------------------------------------------------------------
195#endif
For each library, here 'TcpLib' there is an error file.
Definition TcpClient.h:55
ActionCode
Definition TcpTypes.h:124
@ ACTION_REQUEST_WITH_RESPONSE
Definition TcpTypes.h:168
@ ACTION_INFO
Definition TcpTypes.h:190
@ ACTION_UNDEF
Definition TcpTypes.h:134
@ ACTION_REQUEST
Definition TcpTypes.h:156
@ ACTION_SYNC_DATA_SIZE
Definition TcpTypes.h:144
@ ACTION_RESPONSE
Definition TcpTypes.h:180
const std::string sTcpVersion
Definition TcpTypes.h:100