26 #include "messages/ModuleMessage.pb.h" 30 #include <boost/date_time/posix_time/posix_time_types.hpp> 31 #include <google/protobuf/message.h> 36 class ProtocolMessage;
37 class ProtocolMessageWindow;
54 #endif // MESSAGES_HPP void StampMessageSendtime(ProtocolMessageWindow &msg)
Sets the message's timestamp to the current time.
Definition: Messages.cpp:101
bool MessageIsExpired(const ProtocolMessage &msg)
Determines whether the message has expired.
Definition: Messages.cpp:66
google::protobuf::uint64 ComputeMessageHash(const ModuleMessage &msg)
Hash a message.
Definition: Messages.cpp:51
General FREEDM Namespace.
Definition: CBroker.cpp:53
void SetExpirationTimeFromNow(ProtocolMessage &msg, const boost::posix_time::time_duration &expires_in)
Set the expiration time for this message.
Definition: Messages.cpp:85