Update to dms control phase1.
This commit is contained in:
31
src/recon/ReconClient.h
Normal file
31
src/recon/ReconClient.h
Normal file
@@ -0,0 +1,31 @@
|
||||
#ifndef __RECONCLIENT_H__
|
||||
#define __RECONCLIENT_H__
|
||||
#include <string>
|
||||
#include "Request.h"
|
||||
#include "RequestResult.h"
|
||||
#include "ProtocolStructs.h"
|
||||
namespace Recon {
|
||||
class ReconClient
|
||||
{
|
||||
public:
|
||||
ReconClient(std::string aCerPath, std::string aKeyPath);
|
||||
~ReconClient();
|
||||
void SetHost(const std::string& aHost);
|
||||
RequestResult Create(const Scan& aScan);
|
||||
RequestResult QueryScan(const std::string& aScanID, int& state);
|
||||
RequestResult QueryReconID(const std::string& aScanID, std::string& aReconID);
|
||||
RequestResult QueryReconTask(const std::string& aReconID, TaskQueryResult& aTask);
|
||||
RequestResult QueryVersion();
|
||||
|
||||
private:
|
||||
std::string mVersionContent;
|
||||
std::string mHost;
|
||||
std::string mErrorMessage;
|
||||
Req::Request mRequest;
|
||||
std::unordered_map<std::string, std::string> mHeaders;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
|
||||
#endif // __RECONCLIENT_H__
|
||||
Reference in New Issue
Block a user