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.
49 lines
1.6 KiB
49 lines
1.6 KiB
#ifndef __ARGUS_MODULE_ONVIF_OBSERVER_HEADER__
|
|
#define __ARGUS_MODULE_ONVIF_OBSERVER_HEADER__
|
|
|
|
#include "../data/protocol/xmlParser.h"
|
|
#include "rgooseModule.h"
|
|
#include "../components/base/basicThread.h"
|
|
#include "../components/base/basicEventHeap.h"
|
|
|
|
|
|
#pragma warning(disable: 4251)
|
|
|
|
#define HTTPMU_HOST_ADDRESS "239.255.255.250"
|
|
#define HTTPMU_HOST_PORT 3702
|
|
|
|
//#define DEBUG_ONVIF_PRINTOUT_MESSAGES
|
|
|
|
#define DEFAULT_HTTP_PORT 80
|
|
|
|
class argusModuleOnvifObserver: public argusKernelModule, public basicThread {
|
|
private:
|
|
basicEventHeap * m_pEventHeap;
|
|
enumeratorInfo m_vLocalDevices;
|
|
|
|
localIpAddresses * m_pIpAddresses;
|
|
sourcePool m_vUsedDevices;
|
|
vectorOBSERVER_RESULT m_vResultPool;
|
|
vectorOBSERVER_CTX m_vThreads;
|
|
|
|
bool m_bWSAOK;
|
|
int m_nStatus;
|
|
|
|
PROBE_CTX * init_PROBE_CTX( CSTR ADR, int ID, int stp = 1);
|
|
bool loadAssignedSources(void);
|
|
bool startProbe( CSTR IP, int ID, int stp );
|
|
static void * probeThreadProc(void *);
|
|
protected:
|
|
virtual void m_fThreadProc( void );
|
|
|
|
public:
|
|
explicit argusModuleOnvifObserver( uint32_t moduleID );
|
|
~argusModuleOnvifObserver();
|
|
virtual bool reloadSettings();
|
|
virtual bool startService();
|
|
virtual bool stopService();
|
|
virtual void dispatchEvent(EVENT_CONTAINER *Evt);
|
|
virtual bool validate();
|
|
};
|
|
|
|
#endif
|