25 lines
406 B
C++
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();
|
|
}
|
|
}
|