2024-11-27 12:47:45 +00:00
|
|
|
/**
|
|
|
|
|
* 上传结果到http服务器
|
|
|
|
|
* */
|
|
|
|
|
|
|
|
|
|
#ifndef TOHTTPSRVENGINE_H
|
|
|
|
|
#define TOHTTPSRVENGINE_H
|
|
|
|
|
|
|
|
|
|
#include "AppCommon.h"
|
|
|
|
|
#include "EngineBase.h"
|
|
|
|
|
#include "EngineFactory.h"
|
|
|
|
|
|
|
|
|
|
#include <mutex>
|
|
|
|
|
#include <libssh2.h>
|
|
|
|
|
#include "json/json.h"
|
|
|
|
|
#include "ToWeb.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
using namespace ai_matrix;
|
|
|
|
|
|
|
|
|
|
class ToHttpSrvEngine : public ai_matrix::EngineBase
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
ToHttpSrvEngine();
|
|
|
|
|
~ToHttpSrvEngine();
|
|
|
|
|
|
|
|
|
|
APP_ERROR Init() override;
|
|
|
|
|
APP_ERROR DeInit() override;
|
|
|
|
|
APP_ERROR Process() override;
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
|
|
std::string strPort0_;
|
|
|
|
|
|
|
|
|
|
ai_matrix::HttpServerConfig httpServerConfig_;
|
2024-12-10 07:23:46 +00:00
|
|
|
ai_matrix::BaseConfig baseConfig_;
|
2024-11-27 12:47:45 +00:00
|
|
|
|
|
|
|
|
int iNoDataCnt_ = 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
ENGINE_REGIST(ToHttpSrvEngine)
|
|
|
|
|
|
|
|
|
|
#endif
|