Files
pip/utils/cloud_dispatcher/cloudserver.cpp
2020-08-27 19:40:11 +03:00

25 lines
406 B
C++

#include "cloudserver.h"
CloudServer::CloudServer(DispatcherClient * c) : server(c) {
}
CloudServer::~CloudServer() {
for (auto c :clients) {
c->close();
}
}
void CloudServer::addClient(DispatcherClient * c) {
clients << c;
}
void CloudServer::printStatus() {
piCout << " " << "Clients for" << server->address() << ":";
for (auto c: clients) {
piCout << " " << c->address();
}
}