Systemsicherheit/Assignment 7 - SGX Hands-on/SGX101_sample_code-master/RemoteAttestation/Networking/NetworkManagerClient.h

23 lines
456 B
C
Raw Normal View History

#include "NetworkManager.h"
class NetworkManagerClient : public NetworkManager {
public:
static NetworkManagerClient* getInstance(int port, std::string host = "localhost");
void Init();
void connectCallbackHandler(CallbackHandler cb);
void startService();
void setHost(std::string host);
private:
NetworkManagerClient();
private:
static NetworkManagerClient* instance;
std::string host;
Client *client = NULL;
};