first version of InternalUDPService
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
#include "WHISPER/Messages/Message.hpp"
|
||||
#include "WHISPER/Messages/Protos/join.pb.h"
|
||||
#include <WHISPER/Messages/Join.hpp>
|
||||
#include <memory>
|
||||
|
||||
@@ -16,6 +15,7 @@ namespace WHISPER {
|
||||
sourceType_ = msg.sourcetype();
|
||||
msgType_ = msg.msgtype();
|
||||
joinMessage = messages::join::Join();
|
||||
|
||||
if ( msg.payload_size()) {
|
||||
if (msg.payload().begin()->Is<messages::join::Join>()) {
|
||||
msg.payload().begin()->UnpackTo(&joinMessage);
|
||||
@@ -44,6 +44,7 @@ namespace WHISPER {
|
||||
auto test = std::make_shared<google::protobuf::Any>();
|
||||
test->PackFrom(joinMessage);
|
||||
addPayLoad(test);
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user