ACKme Logo WiConnect Host Library- API Reference Guide
 
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Groups Pages
GhmMessageList.h
1 
29 #pragma once
30 
31 #include "api/WiconnectTypes.h"
32 #include "GhmMessage.h"
33 
34 
35 
36 namespace wiconnect
37 {
38 
39 
47 {
48 public:
49  GhmMessageList(int bufferLen = 0, void *buffer = NULL);
50  ~GhmMessageList();
51 
52  void reset(void);
53  const GhmMessage* getListHead() const;
54  int getCount() const;
55  const GhmMessage* getResult(int i) const;
56  const GhmMessage* operator [](int i) const;
57 
58 protected:
59  GhmMessage *listHead, *listTail;
60  uint8_t *buffer;
61  uint8_t *bufferPtr;
62  uint16_t bufferLen;
63  uint16_t bufferRemaining;
64  int count;
65 
66  WiconnectResult add(const char *msgId, const char* timestamp, const char *length);
67 
68 
69  friend class GhmInterface;
70 };
71 
72 
73 }
Contains single entry from goHACK.me message listing.
Definition: GhmMessage.h:46
WiconnectResult
API Result code.
List of goHACK.me messages.
The provides an interface for http://goHACK.me.
Definition: GhmInterface.h:81