FREEDM DGI
Namespaces | Functions
Messages.hpp File Reference
#include "messages/ModuleMessage.pb.h"
#include <memory>
#include <boost/date_time/posix_time/posix_time_types.hpp>
#include <google/protobuf/message.h>

Go to the source code of this file.

Namespaces

 freedm
 General FREEDM Namespace.
 
 freedm::broker
 Broker Architecture Namespace.
 

Functions

google::protobuf::uint64 freedm::broker::ComputeMessageHash (const ModuleMessage &msg)
 Hash a message. More...
 
bool freedm::broker::MessageIsExpired (const ProtocolMessage &msg)
 Determines whether the message has expired. More...
 
void freedm::broker::SetExpirationTimeFromNow (ProtocolMessage &msg, const boost::posix_time::time_duration &expires_in)
 Set the expiration time for this message. More...
 
void freedm::broker::StampMessageSendtime (ProtocolMessageWindow &msg)
 Sets the message's timestamp to the current time. More...
 

Detailed Description

Author
Michael Catanzaro micha.nosp@m.el.c.nosp@m.atanz.nosp@m.aro@.nosp@m.mst.e.nosp@m.du
Project:
FREEDM DGI
Description:
Utility functions for use with protobuf message objects