SenseClient is an API to interact with Sen.se platform. Sen.se is the place where Humans, Machines, Objects, Environments, Information, Physical and Virtual spaces mix up, talk, intertwine, interact, enrich and empower each other.

Dependencies:   NetServicesProxy

Dependents:   SenseClientSample

Revision:
1:0249701444ee
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/SenseHandler.h	Wed Jul 11 13:55:07 2012 +0000
@@ -0,0 +1,30 @@
+#ifndef SENSEHANDLER_H
+#define SENSEHANDLER_H
+
+#include "HTTPRequestHandler.h"
+
+extern void parseEvent(char* content);
+
+
+class SenseHandler : public HTTPRequestHandler {
+public:
+    SenseHandler(const char* rootPath, const char* path, TCPSocket* pTCPSocket);
+    virtual ~SenseHandler();
+
+//protected:
+    static inline HTTPRequestHandler* inst(const char* rootPath, const char* path, TCPSocket* pTCPSocket) {
+        return new SenseHandler(rootPath, path, pTCPSocket);    //if we ever could do static virtual functions, this would be one
+    }
+
+    virtual void doGet();
+    virtual void doPost();
+    virtual void doHead();
+
+    virtual void onReadable(); //Data has been read
+    virtual void onWriteable(); //Data has been written & buf is free
+    virtual void onClose(); //Connection is closing
+    
+};
+
+
+#endif
\ No newline at end of file