Paul Zinselmeyer
ba8e969470
All checks were successful
Latex Build / build-latex (Assignment 4 - Protokollsicherheit (Praxis)) (push) Successful in 1m2s
Latex Build / build-latex (Assignment 5 - Software Security - Teil 1) (push) Successful in 1m3s
Latex Build / build-latex (Assignment 6 - Software Security - Teil 2) (push) Successful in 1m0s
Latex Build / build-latex (Assignment 4 - Protokollsicherheit (Praxis)) (pull_request) Successful in 30s
Latex Build / build-latex (Assignment 5 - Software Security - Teil 1) (pull_request) Successful in 10s
Latex Build / build-latex (Assignment 6 - Software Security - Teil 2) (pull_request) Successful in 8s
22 lines
456 B
C++
22 lines
456 B
C++
#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;
|
|
};
|
|
|
|
|
|
|