// cctvC3011.h: interface for the CcctvC3JT class. // ////////////////////////////////////////////////////////////////////// #if !defined(AFX_cctvC3JT_H__2F349D15_4635_4A09_9299_92BDB042A30C__INCLUDED_) #define AFX_cctvC3JT_H__2F349D15_4635_4A09_9299_92BDB042A30C__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #include "daq/daq_protocol.h" #include "daq/daq_cmddef.h" #define HEADLEN 39 class CcctvC3JT : public CProtocol { public: CcctvC3JT(); virtual ~CcctvC3JT(); virtual void Init(S_PROTOCOLCFG *pcfg); virtual void SetExtendedPara(uint16 no, sint32 val); virtual sint32 RxProc(); virtual sint32 TxProc(); void Login(char *name,char *pwd,char *ip,char *port); void PressKey(char *keyval,char *state,char *step); void Aim(uint8 oper,uint8 wall,uint8 task,uint8 mon,uint8 mult,uint8 win,uint8 cam); // void PTZControl(uint8 oper,uint8 wall,uint8 task,uint8 mon,uint8 mult,uint8 win,uint8 cam,uint8 ptz,uint8 ptzpara); int PTZConv(uint8 ptz); protected: int GetNowSecond(); virtual BOOL ProcCmd(); ST_TRACK_ADDR m_cmdAddr; private: void TrimBlank(char *buf,int len); char* GetAkeyStart(char * buf,char *key,int &len); char* GetAkeyVal(char * buf,char *key,int &len); int m_reloginTime; int m_RcvTimeOuts; uint16 m_rtuno; int m_LastSendTime; int m_ID; BOOL m_bLogin; BOOL m_bCmd; char mHead[40]; int m_infotype; int m_keyval; int m_state; int m_step; int m_platinfotype; char m_msg[100]; int m_mon; int m_win; int m_cam; uint8 m_mult; char name[24]; char pwd[24]; char ip[16]; char port[8]; struct TxBuff{ char Buf[40][256]; int Len[40]; int FrameNum; }m_tBuf; int TxFlag; int TxIndex; void TxBufwrite(); }; #endif // !defined(AFX_cctvC3JT_H__2F349D15_4635_4A09_9299_92BDB042A30C__INCLUDED_)