You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
938 B
34 lines
938 B
#ifndef __CLIENTHANDLER_H_INCL__
|
|
#define __CLIENTHANDLER_H_INCL__
|
|
|
|
//#define DUBUG_COMMUNICATION
|
|
|
|
#include "../../data/net/netClientHandler.h"
|
|
#include "interProcessProto.h"
|
|
|
|
#define CMD_FRAME 0xA5
|
|
#define CMD_QUIT 0xE3
|
|
|
|
/**
|
|
* TODO: Add class description
|
|
*
|
|
* @author Gagua
|
|
*/
|
|
class ClientHandler : public networkClientHandler, public interProcProto{
|
|
private:
|
|
basicLogCollection * m_pLog;
|
|
bool m_bRunning;
|
|
cv::Mat tFrame;
|
|
protected:
|
|
bool packetHandler( protocolPackage *Package );
|
|
bool sendFrame( cv::Mat &frame );
|
|
public:
|
|
// Constructor
|
|
explicit ClientHandler( int SockFD );
|
|
virtual ~ClientHandler();
|
|
bool create(void);
|
|
void dispatchEvent( basicEvent *Evt );
|
|
bool getStatus( void ){ return CS_CONNECTED == getConnectionStatus(); };
|
|
};
|
|
|
|
#endif // __LRF_CLIENTHANDLER_H_INCL__
|