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.
 
 
 
 
 
 

37 lines
1.4 KiB

#ifndef __MOJO_REMOTE_CLIENT_HEADER__
#define __MOJO_REMOTE_CLIENT_HEADER__
#include "../../components/base/basicLogCollection.h"
#include "../../components/base/basicThread.h"
#include "../../data/net/clientPort.h"
#include "../../data/protocol/protocol.h"
#include "../../data/protocol/protocolARGUS_DATA.h"
class mojoKernel;
class mojoRemoteClient: public basicThread, public protocolParser{
private:
basicLogCollection *m_pLog;
mojoKernel *m_pMaster;
clientPort *m_pPort;
basicMutex m_mQueryProtector;
uint32_t m_nQueryMessage;
uint8_t m_bAutomationStage;
bool m_bShutdownCommunication;
bool m_bCommunicationEstablished;
bool m_bRegisteredWithRemotePeer;
protected:
virtual int packetChecker( U8 *Buffer, size_t BufferSize);
virtual protocolPackage * packetExtractor( U8 *Buffer, size_t BufferSize);
virtual bool packetHandler( protocolPackage *Package );
virtual void m_fThreadProc( void );
public:
explicit mojoRemoteClient( mojoKernel *ptr );
~mojoRemoteClient();
virtual bool create();
bool createVideoTransferTask( ARGUS_DATA_VIDEO_SEGMENT *ptr );
bool registerMojo( CSTR identity );
bool validate();
};
#endif