Skip to content
Snippets Groups Projects
Commit 54fd4b75 authored by Valerio Pastore's avatar Valerio Pastore
Browse files

removed client operations from protocol

parent 9b03f50b
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,6 @@ public:
try {
return this->stats.at(stat);
} catch (const std::out_of_range &) {
std::cerr << "No stat with name " << stat << std::endl;
return std::nullopt;
}
}
......
......@@ -32,14 +32,10 @@ public:
virtual std::string getHost() = 0;
virtual void setHost(std::string host) = 0;
virtual int connectToServer()=0;
virtual int connectToClient()=0;
virtual int closeConnectionToServer()=0;
virtual int closeConnectionToClient()=0;
virtual bool isConnectedToClient() const =0;
virtual bool isConnectedToServer() const =0;
virtual int receiveFromClient(PacketLib::BasePacket &) = 0;
virtual int sendToServer(PacketLib::BasePacket &) = 0;
virtual ~BaseProtocol() = default;
};
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment