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
SenseHandler.h
- Committer:
- mimil
- Date:
- 2012-07-11
- Revision:
- 1:0249701444ee
File content as of revision 1:0249701444ee:
#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