1
0
Fork 0

register RLP vectors

This commit is contained in:
Kevin Matz 2021-08-25 00:23:11 -04:00
parent a62c41e6bc
commit c41d26bf7f
7 changed files with 20 additions and 2 deletions

View File

@ -23,6 +23,7 @@
*/
#include "component.h"
#include "dmp.h"
namespace ACN::DMP {
@ -32,7 +33,10 @@ namespace ACN::DMP {
Component::Component(UUID::uuid cid)
: SDT::Member(cid)
{
fctn_ = "OpenLCP DMP Component";
RlpRegisterVector(DMP_PROTOCOL_ID, std::bind(&Component::SdtReceiver, this,
std::placeholders::_1));
}
} // namespace ACN::DMP

View File

@ -35,6 +35,8 @@ class Component
{
public:
Component(UUID::uuid = UUID::uuid());
virtual void DmpReceiver(std::shared_ptr<RLP::Pdu>);
};
} // namespace ACN::DMP

View File

@ -23,6 +23,7 @@
*/
#include "controller.h"
#include "dmp.h"
namespace ACN::DMP {
@ -32,7 +33,10 @@ namespace ACN::DMP {
Controller::Controller(UUID::uuid cid)
: SDT::Leader(cid)
{
fctn_ = "OpenLCP DMP Controller";
RlpRegisterVector(DMP_PROTOCOL_ID, std::bind(&Controller::SdtReceiver, this,
std::placeholders::_1));
}
} // namespace ACN::DMP

View File

@ -35,6 +35,8 @@ class Controller
{
public:
Controller(UUID::uuid = UUID::uuid());
virtual void DmpReceiver(std::shared_ptr<RLP::Pdu>);
};
} // namespace ACN::DMP

View File

@ -41,8 +41,8 @@ Leader::Leader(UUID::uuid cid)
* protocol defined which interfaces directly to the root layer:
* Session Data Transport
*/
RlpRegisterVector(SDT::SDT_PROTOCOL_ID, std::bind(&Leader::SdtReceiver,
this, std::placeholders::_1));
RlpRegisterVector(SDT_PROTOCOL_ID, std::bind(&Leader::SdtReceiver, this,
std::placeholders::_1));
}

View File

@ -23,6 +23,7 @@
*/
#include "member.h"
#include "sdt.h"
namespace ACN::SDT {
@ -34,6 +35,9 @@ Member::Member(UUID::uuid cid)
: ACN::RLP::Appliance(cid)
{
fctn_ = "OpenLCP SDT Member";
RlpRegisterVector(SDT_PROTOCOL_ID, std::bind(&Member::SdtReceiver, this,
std::placeholders::_1));
}
} // namespace ACN::SDT

View File

@ -32,6 +32,8 @@ class Member
{
public:
Member(UUID::uuid = UUID::uuid());
virtual void SdtReceiver(std::shared_ptr<RLP::Pdu>);
};
} // namespace ACN::SDT