register RLP vectors
This commit is contained in:
parent
a62c41e6bc
commit
c41d26bf7f
|
@ -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
|
||||
|
|
|
@ -35,6 +35,8 @@ class Component
|
|||
{
|
||||
public:
|
||||
Component(UUID::uuid = UUID::uuid());
|
||||
|
||||
virtual void DmpReceiver(std::shared_ptr<RLP::Pdu>);
|
||||
};
|
||||
|
||||
} // namespace ACN::DMP
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -35,6 +35,8 @@ class Controller
|
|||
{
|
||||
public:
|
||||
Controller(UUID::uuid = UUID::uuid());
|
||||
|
||||
virtual void DmpReceiver(std::shared_ptr<RLP::Pdu>);
|
||||
};
|
||||
|
||||
} // namespace ACN::DMP
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -32,6 +32,8 @@ class Member
|
|||
{
|
||||
public:
|
||||
Member(UUID::uuid = UUID::uuid());
|
||||
|
||||
virtual void SdtReceiver(std::shared_ptr<RLP::Pdu>);
|
||||
};
|
||||
|
||||
} // namespace ACN::SDT
|
||||
|
|
Loading…
Reference in New Issue