picloud
This commit is contained in:
@@ -1,5 +1,24 @@
|
||||
#include "cloudserver.h"
|
||||
|
||||
CloudServer::CloudServer(DispatcherClient * client) {
|
||||
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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user