Tezzeret  1
Tezzeret
GmUdpIp.hpp
1 #ifndef GMUDPIP_HPP_
2 #define GMUDPIP_HPP_
3 
4 #if GEO_NET_NDK == GEO_TRUE
5 #include <ti/ndk/inc/netmain.h>
6 #endif
7 #ifdef GEO_NET_3100
8 #include "http-port/usertype.h"
9 #include <simplelink.h>
10 #include <socket.h>
11 #endif
12 
13 namespace Geometrics
14 {
15 
16 #define GM_COMM_OK 0
17 #define GM_COMM_FAIL 1
18 
20 {
21 
22 public:
23  GmUdpPublisher ();
24  ~GmUdpPublisher ();
25  int CheckInitialized (char *szServerName,
26  char *szPortNumberAsString,
27  Bool bIsKnownIp);
28  int Shutdown ();
29 private:
30 // int SendBuffer (const char *pcData,
31 // UInt32 iTotalSize);
32 //#if GEO_NET_NDK == GEO_TRUE
33  SOCKET m_sPublisherSocket;
34 //#endif
35  Bool m_bInitialized,
36  m_bFailed;
37  int m_iLastBuffer,
38  m_iBufferMax,
39  m_iItemSize,
40  m_iTotalSerialized;
41  UInt32 m_iBufferSize;
42  char *m_pcBuffer;
43 };
44 
45 } // End geometrics namespace
46 
47 #endif /* GMUDPIP_HPP_ */
Definition: GmUdpIp.hpp:20
GmApp/GmLoggingApp.hpp>
Definition: Analogs.hpp:47