Systemsicherheit/Assignment 7 - SGX Hands-on/SGX101_sample_code-master/RemoteAttestation/Networking/NetworkManager.cpp

25 lines
397 B
C++
Raw Normal View History

#include "NetworkManager.h"
NetworkManager::NetworkManager() {}
NetworkManager::~NetworkManager() {}
void NetworkManager::setPort(int port) {
this->port = port;
}
void NetworkManager::printMsg(bool send, const char* msg) {
string s(msg);
replace(s.begin(), s.end(), '\n', '-');
if (send)
Log("Send msg: '%s'", s);
else
Log("Received msg: '%s'", s);
}