Tezzeret  1
Tezzeret
GmTcpip.hpp
1 #ifndef GMTCPIP_HPP_
2 #define GMTCPIP_HPP_
3 
4 #if GEO_NET_NDK == GEO_TRUE
5 #include <netmain.h>
6 #endif
7 
8 #if GEO_NET_3100 == GEO_TRUE
9 //#include "http-port/usertype.h"
10 #include <simplelink.h>
11 #include <socket.h>
12 #endif
13 
14 #if GEO_NET_3100 == GEO_TRUE
15 #include <simplelink.h>
16 // TODO RHC not good place for those files. That library
17 // needs to be moved out and into this one.
18 #include "GmEth/http-port/rhc_usertype.h"
19 
20 //#include "http-port/usertype.h"
21 /* Local Platform Specific Header file */
22 #include "GmEth/http-port/sockets.h"
23 
24 #endif
25 
26 
27 
28 #include <GmStorage.hpp>
29 
30 
31 
32 extern "C" int StartupMQTT (void);
33 
34 #define GM_COMM_OK 0
35 #define GM_COMM_FAIL 1
36 
37 namespace Geometrics
38 {
39  class GmTcpipOut : public GmStorage
40  {
41  public:
42  GmTcpipOut ();
43  ~GmTcpipOut ();
44  virtual int Open ();
45  //int Setup ();
46  int WriteData (const char* pcData,
47  unsigned int iDataSize,
48  UInt32 ui32Topic);
49  virtual int Close (int iFileIndex);
50  bool IsOpen () { return m_bIsOpen; };
51 
52  protected:
53  //UART_Params m_uartParams;
54  //UART_Handle m_uart_comp;
55  bool m_bFailed;
56  Bool m_bInitialized;
57  int PushData (const char *pData,
58  const int iDataSize);
59  int StartPushData ();
60  int StopPushData ();
61  int PublishSelf (const char *pcData,
62  int iDataSize);
63 
64 
65  // TODO RHC schedule to delete
66  // int // m_iLastBuffer,
67  // m_iBufferMax,
68  // m_iItemSize,
69  // m_iTotalSerialized;
70  // UInt32 // m_iBufferSize;
71  // char *m_pcBuffer;
72  };
73 } // End geometrics namespace
74 
75 #endif /* GMTCPIP_HPP_ */
Definition: GmStorage.hpp:81
Definition: GmTcpip.hpp:40
GmApp/GmLoggingApp.hpp>
Definition: Analogs.hpp:47