24 #ifndef CCONNECTION_HPP 25 #define CCONNECTION_HPP 33 #include <boost/noncopyable.hpp> 50 :
virtual std::runtime_error
53 :
std::runtime_error(what) { }
58 :
private boost::noncopyable
65 CConnection(std::string uuid, boost::asio::ip::udp::endpoint endpoint);
77 void Send(
const ModuleMessage& msg);
80 void ReceiveACK(
const ProtocolMessage& msg);
83 bool Receive(
const ProtocolMessage& msg);
89 void ChangePhase(
bool newround);
92 std::string GetUUID()
const;
95 void SetReliability(
int r);
98 int GetReliability()
const;
110 #endif // CCONNECTION_HPP
Used for errors communicating with peers.
Definition: CConnection.hpp:49
boost::shared_ptr< CConnection > ConnectionPtr
Definition: CConnection.hpp:105
Represents a single outgoing connection to a client.
Definition: CConnection.hpp:57
boost::shared_ptr< IProtocol > m_protocol
The network protocol to use for sending/receiving messages.
Definition: CConnection.hpp:102
EConnectionError(const std::string &what)
Definition: CConnection.hpp:52
General FREEDM Namespace.
Definition: CBroker.cpp:53
boost::shared_ptr< CConnection > ConnectionPtr
Definition: CConnection.hpp:62
Definition: CConnection.hpp:35