sdk-hwV1.3/external/eyesee-mpp/system/private/onvif/example/testOnvif.cpp

32 lines
493 B
C++
Raw Normal View History

2024-05-07 10:09:20 +00:00
/*
* testDiscovery.cpp
*
* Created on: 2017117
* Author: liu
*/
#include "EventLoop.h"
#include "DiscoveryService.h"
#include "SoapService.h"
using namespace onvif;
int main(int argc, char **argv) {
EventLoop loop;
SoapService soap(loop, argv[1], 8080);
DiscoveryService discovery(loop, soap);
SoapService::OnvifContext context;
context.service = &soap;
context.param = NULL;
soap.setContext(&context);
loop.run();
return 0;
}