make the ACN EPI 19 Fixed name only asignable at initilization
This commit is contained in:
parent
0cad3288d7
commit
e528abe5e1
@ -10,14 +10,13 @@
|
|||||||
* @brief QSacnNode::QSacnNode
|
* @brief QSacnNode::QSacnNode
|
||||||
* @param parent
|
* @param parent
|
||||||
* @param cid
|
* @param cid
|
||||||
|
* @param fctn
|
||||||
*/
|
*/
|
||||||
QSacnNode::QSacnNode(QObject *parent, QUuid cid)
|
QSacnNode::QSacnNode(QObject *parent, QUuid cid, QString fctn)
|
||||||
: Component(UUID::uuid(cid.toString().toStdString()))
|
: Component(UUID::uuid(cid.toString().toStdString()), fctn.toStdString())
|
||||||
, QUdpSocket(parent)
|
, QUdpSocket(parent)
|
||||||
, is_discovering_(false)
|
, is_discovering_(false)
|
||||||
{
|
{
|
||||||
fctn_ = "OpenLCP QSacnNode";
|
|
||||||
|
|
||||||
bind(QHostAddress::AnyIPv4, sACN::ACN_SDT_MULTICAST_PORT);
|
bind(QHostAddress::AnyIPv4, sACN::ACN_SDT_MULTICAST_PORT);
|
||||||
|
|
||||||
connect(this, &QUdpSocket::readyRead,
|
connect(this, &QUdpSocket::readyRead,
|
||||||
|
@ -20,7 +20,8 @@ class QT_EXPORT QSacnNode
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit QSacnNode(QObject *parent = nullptr, QUuid = QUuid::createUuid());
|
explicit QSacnNode(QObject *parent = nullptr,
|
||||||
|
QUuid = QUuid::createUuid(), QString fctn = "OpenLCP QSacnNode");
|
||||||
~QSacnNode();
|
~QSacnNode();
|
||||||
|
|
||||||
// rlp component
|
// rlp component
|
||||||
|
@ -49,12 +49,13 @@ class Component {
|
|||||||
public:
|
public:
|
||||||
/**
|
/**
|
||||||
* @brief Component
|
* @brief Component
|
||||||
* @param cid the Component Identifier
|
* @param cid
|
||||||
|
* @param fctn
|
||||||
*/
|
*/
|
||||||
Component(UUID::uuid cid = UUID::uuid())
|
Component(UUID::uuid cid = UUID::uuid(), std::string fctn = "OpenLCP ACN Component")
|
||||||
: fctn_(std::string("OpenLCP ACN Component"))
|
: cid_(cid)
|
||||||
|
, fctn_(fctn)
|
||||||
, uacn_(std::string())
|
, uacn_(std::string())
|
||||||
, cid_(cid)
|
|
||||||
{};
|
{};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -95,12 +96,10 @@ public:
|
|||||||
*/
|
*/
|
||||||
void assignUserName(const std::string s) { uacn_ = s; }
|
void assignUserName(const std::string s) { uacn_ = s; }
|
||||||
|
|
||||||
protected:
|
|
||||||
std::string fctn_; //!< Fixed Component Type Name (FCTN)
|
|
||||||
std::string uacn_; //!< User Assigned Component Name (UACN)
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
const UUID::uuid cid_;
|
const UUID::uuid cid_;
|
||||||
|
const std::string fctn_; //!< Fixed Component Type Name (FCTN)
|
||||||
|
std::string uacn_; //!< User Assigned Component Name (UACN)
|
||||||
};
|
};
|
||||||
|
|
||||||
}; // ACN
|
}; // ACN
|
||||||
|
@ -30,13 +30,12 @@ namespace ACN::DMP {
|
|||||||
/**
|
/**
|
||||||
* @brief Appliance::Appliance
|
* @brief Appliance::Appliance
|
||||||
* @param cid
|
* @param cid
|
||||||
|
* @param fctn
|
||||||
*/
|
*/
|
||||||
Appliance::Appliance(UUID::uuid cid)
|
Appliance::Appliance(UUID::uuid cid, std::string fctn)
|
||||||
: SDT::Member(cid)
|
: SDT::Member(cid, fctn)
|
||||||
, DMP::Device()
|
, DMP::Device()
|
||||||
{
|
{
|
||||||
fctn_ = "OpenLCP DMP Component";
|
|
||||||
|
|
||||||
RlpRegisterVector(DMP_PROTOCOL_ID, std::bind(&Appliance::RlpReceiver, this,
|
RlpRegisterVector(DMP_PROTOCOL_ID, std::bind(&Appliance::RlpReceiver, this,
|
||||||
std::placeholders::_1));
|
std::placeholders::_1));
|
||||||
}
|
}
|
||||||
|
@ -39,7 +39,7 @@ class Appliance
|
|||||||
, public DMP::Device
|
, public DMP::Device
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Appliance(UUID::uuid = UUID::uuid());
|
Appliance(UUID::uuid = UUID::uuid(), std::string fctn = "OpenLCP DMP Component");
|
||||||
|
|
||||||
virtual void RlpReceiver(PDU::Message<RLP::Pdu>);
|
virtual void RlpReceiver(PDU::Message<RLP::Pdu>);
|
||||||
};
|
};
|
||||||
|
@ -30,12 +30,11 @@ namespace ACN::DMP {
|
|||||||
/**
|
/**
|
||||||
* @brief Controller::Controller
|
* @brief Controller::Controller
|
||||||
* @param cid
|
* @param cid
|
||||||
|
* @param fctn
|
||||||
*/
|
*/
|
||||||
Controller::Controller(UUID::uuid cid)
|
Controller::Controller(UUID::uuid cid, std::string fctn)
|
||||||
: SDT::Leader(cid)
|
: SDT::Leader(cid, fctn)
|
||||||
{
|
{
|
||||||
fctn_ = "OpenLCP DMP Controller";
|
|
||||||
|
|
||||||
RlpRegisterVector(DMP_PROTOCOL_ID, std::bind(&Controller::RlpReceiver, this,
|
RlpRegisterVector(DMP_PROTOCOL_ID, std::bind(&Controller::RlpReceiver, this,
|
||||||
std::placeholders::_1));
|
std::placeholders::_1));
|
||||||
}
|
}
|
||||||
|
@ -34,7 +34,7 @@ class Controller
|
|||||||
: public SDT::Leader
|
: public SDT::Leader
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Controller(UUID::uuid = UUID::uuid());
|
Controller(UUID::uuid = UUID::uuid(), std::string fctn = "OpenLCP DMP Controller");
|
||||||
|
|
||||||
virtual void RlpReceiver(PDU::Message<RLP::Pdu>);
|
virtual void RlpReceiver(PDU::Message<RLP::Pdu>);
|
||||||
};
|
};
|
||||||
|
@ -30,14 +30,13 @@ namespace RDMnet::LLRP {
|
|||||||
/**
|
/**
|
||||||
* @brief Manager::Manager
|
* @brief Manager::Manager
|
||||||
* @param cid
|
* @param cid
|
||||||
|
* @param fctn
|
||||||
*/
|
*/
|
||||||
Manager::Manager(UUID::uuid cid)
|
Manager::Manager(UUID::uuid cid, std::string fctn)
|
||||||
: ACN::RLP::Component(cid)
|
: ACN::RLP::Component(cid, fctn)
|
||||||
, transactionNumber(0)
|
, transactionNumber(0)
|
||||||
, probeInactiveOnly(true)
|
, probeInactiveOnly(true)
|
||||||
{
|
{
|
||||||
fctn_ = "OpenLCP LLRP Manager";
|
|
||||||
|
|
||||||
RlpRegisterVector(VECTOR_ROOT_LLRP, std::bind(&Manager::rlpLlrpReceiver,
|
RlpRegisterVector(VECTOR_ROOT_LLRP, std::bind(&Manager::rlpLlrpReceiver,
|
||||||
this, std::placeholders::_1));
|
this, std::placeholders::_1));
|
||||||
}
|
}
|
||||||
|
@ -38,7 +38,7 @@ class Manager
|
|||||||
: public ACN::RLP::Component
|
: public ACN::RLP::Component
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Manager(UUID::uuid = UUID::uuid());
|
Manager(UUID::uuid = UUID::uuid(), std::string fctn = "OpenLCP LLRP Manager");
|
||||||
|
|
||||||
void rlpLlrpReceiver(ACN::PDU::Message<ACN::RLP::Pdu>);
|
void rlpLlrpReceiver(ACN::PDU::Message<ACN::RLP::Pdu>);
|
||||||
|
|
||||||
|
@ -29,15 +29,14 @@ namespace RDMnet {
|
|||||||
/**
|
/**
|
||||||
* @brief Broker::Broker
|
* @brief Broker::Broker
|
||||||
* @param cid
|
* @param cid
|
||||||
|
* @param fctn
|
||||||
* @param uid
|
* @param uid
|
||||||
*/
|
*/
|
||||||
Broker::Broker(UUID::uuid cid, RDM::UID uid)
|
Broker::Broker(UUID::uuid cid, std::string fctn, RDM::UID uid)
|
||||||
: Implementation(cid, uid)
|
: Implementation(cid, fctn, uid)
|
||||||
, EPT::Broker()
|
, EPT::Broker()
|
||||||
, RPT::Broker()
|
, RPT::Broker()
|
||||||
{
|
{
|
||||||
fctn_ = "OpenLCP RDMnet Broker";
|
|
||||||
|
|
||||||
RlpRegisterVector(VECTOR_ROOT_BROKER, std::bind(&Broker::rlpBrokerReceiver,
|
RlpRegisterVector(VECTOR_ROOT_BROKER, std::bind(&Broker::rlpBrokerReceiver,
|
||||||
this, std::placeholders::_1));
|
this, std::placeholders::_1));
|
||||||
}
|
}
|
||||||
|
@ -38,7 +38,8 @@ class Broker
|
|||||||
, public RPT::Broker
|
, public RPT::Broker
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Broker(UUID::uuid = UUID::uuid(), RDM::UID = RDM::UID());
|
Broker(UUID::uuid = UUID::uuid(), std::string ftcn = "OpenLCP RDMnet Broker",
|
||||||
|
RDM::UID = RDM::UID());
|
||||||
|
|
||||||
void rlpBrokerReceiver(ACN::PDU::Message<ACN::RLP::Pdu>);
|
void rlpBrokerReceiver(ACN::PDU::Message<ACN::RLP::Pdu>);
|
||||||
|
|
||||||
|
@ -28,15 +28,14 @@ namespace RDMnet {
|
|||||||
/**
|
/**
|
||||||
* @brief Controller::Controller
|
* @brief Controller::Controller
|
||||||
* @param cid
|
* @param cid
|
||||||
|
* @param fctn
|
||||||
* @param uid
|
* @param uid
|
||||||
*/
|
*/
|
||||||
Controller::Controller(UUID::uuid cid, RDM::UID uid)
|
Controller::Controller(UUID::uuid cid, std::string fctn, RDM::UID uid)
|
||||||
: Implementation(cid, uid)
|
: Implementation(cid, fctn, uid)
|
||||||
, RDM::Controller()
|
, RDM::Controller()
|
||||||
, RPT::Controller()
|
, RPT::Controller()
|
||||||
{
|
{
|
||||||
fctn_ = "OpenLCP RDMnet Controller";
|
|
||||||
|
|
||||||
RlpRegisterVector(VECTOR_ROOT_RPT, std::bind(&Controller::rlpRptReceiver,
|
RlpRegisterVector(VECTOR_ROOT_RPT, std::bind(&Controller::rlpRptReceiver,
|
||||||
this, std::placeholders::_1));
|
this, std::placeholders::_1));
|
||||||
}
|
}
|
||||||
|
@ -38,7 +38,8 @@ class Controller
|
|||||||
, public RPT::Controller
|
, public RPT::Controller
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Controller(UUID::uuid = UUID::uuid(), RDM::UID = RDM::UID());
|
Controller(UUID::uuid = UUID::uuid(), std::string fctn = "OpenLCP RDMnet Controller",
|
||||||
|
RDM::UID = RDM::UID());
|
||||||
|
|
||||||
void rlpRptReceiver(ACN::PDU::Message<ACN::RLP::Pdu>);
|
void rlpRptReceiver(ACN::PDU::Message<ACN::RLP::Pdu>);
|
||||||
};
|
};
|
||||||
|
@ -28,16 +28,15 @@ namespace RDMnet {
|
|||||||
/**
|
/**
|
||||||
* @brief Device::Device
|
* @brief Device::Device
|
||||||
* @param cid
|
* @param cid
|
||||||
|
* @param fctn
|
||||||
* @param uid
|
* @param uid
|
||||||
* @param rid
|
* @param rid
|
||||||
*/
|
*/
|
||||||
Device::Device(UUID::uuid cid, RDM::UID uid, UUID::uuid rid)
|
Device::Device(UUID::uuid cid, std::string fctn, RDM::UID uid, UUID::uuid rid)
|
||||||
: Implementation(cid, uid)
|
: Implementation(cid, fctn, uid)
|
||||||
, RPT::Device()
|
, RPT::Device()
|
||||||
, rid_(rid)
|
, rid_(rid)
|
||||||
{
|
{
|
||||||
fctn_ = "OpenLCP RDMnet Device";
|
|
||||||
|
|
||||||
RlpRegisterVector(VECTOR_ROOT_RPT, std::bind(&Device::rlpRptReceiver,
|
RlpRegisterVector(VECTOR_ROOT_RPT, std::bind(&Device::rlpRptReceiver,
|
||||||
this, std::placeholders::_1));
|
this, std::placeholders::_1));
|
||||||
}
|
}
|
||||||
|
@ -36,9 +36,8 @@ class Device
|
|||||||
, public RPT::Device
|
, public RPT::Device
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Device(UUID::uuid cid = UUID::uuid(),
|
Device(UUID::uuid cid = UUID::uuid(), std::string fctn = "OpenLCP RDMnet Device",
|
||||||
RDM::UID uid = RDM::UID(),
|
RDM::UID uid = RDM::UID(), UUID::uuid rid = UUID::uuid());
|
||||||
UUID::uuid rid = UUID::uuid());
|
|
||||||
|
|
||||||
void rlpRptReceiver(ACN::PDU::Message<ACN::RLP::Pdu>);
|
void rlpRptReceiver(ACN::PDU::Message<ACN::RLP::Pdu>);
|
||||||
|
|
||||||
|
@ -29,15 +29,14 @@ namespace RDMnet {
|
|||||||
/**
|
/**
|
||||||
* @brief Implementation::Implementation
|
* @brief Implementation::Implementation
|
||||||
* @param cid
|
* @param cid
|
||||||
|
* @param fctn
|
||||||
* @param uid
|
* @param uid
|
||||||
*/
|
*/
|
||||||
Implementation::Implementation(UUID::uuid cid, RDM::UID uid)
|
Implementation::Implementation(UUID::uuid cid, std::string fctn, RDM::UID uid)
|
||||||
: ACN::RLP::Component(cid)
|
: ACN::RLP::Component(cid, fctn)
|
||||||
, RDM::Responder(uid)
|
, RDM::Responder(uid)
|
||||||
, LLRP::Target()
|
, LLRP::Target()
|
||||||
{
|
{
|
||||||
fctn_ = "OpenLCP RDMnet Implementation";
|
|
||||||
|
|
||||||
RlpRegisterVector(VECTOR_ROOT_LLRP, std::bind(&Implementation::rlpLlrpReceiver,
|
RlpRegisterVector(VECTOR_ROOT_LLRP, std::bind(&Implementation::rlpLlrpReceiver,
|
||||||
this, std::placeholders::_1));
|
this, std::placeholders::_1));
|
||||||
RlpRegisterVector(VECTOR_ROOT_EPT, std::bind(&Implementation::rlpEptReceiver,
|
RlpRegisterVector(VECTOR_ROOT_EPT, std::bind(&Implementation::rlpEptReceiver,
|
||||||
|
@ -40,7 +40,7 @@ class Implementation
|
|||||||
, public EPT::Client
|
, public EPT::Client
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Implementation(UUID::uuid = UUID::uuid(),
|
Implementation(UUID::uuid = UUID::uuid(), std::string fctn = "OpenLCP RDMnet Implementation",
|
||||||
RDM::UID = RDM::UID());
|
RDM::UID = RDM::UID());
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
@ -31,11 +31,11 @@ namespace ACN::RLP {
|
|||||||
/**
|
/**
|
||||||
* @brief Component::Component
|
* @brief Component::Component
|
||||||
* @param cid
|
* @param cid
|
||||||
|
* @param fctn
|
||||||
*/
|
*/
|
||||||
Component::Component(UUID::uuid cid)
|
Component::Component(UUID::uuid cid, std::string fctn)
|
||||||
: ACN::Component(cid)
|
: ACN::Component(cid, fctn)
|
||||||
{
|
{
|
||||||
fctn_ = "OpenLCP RLP Component";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -46,7 +46,7 @@ class Component
|
|||||||
: public ACN::Component
|
: public ACN::Component
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Component(UUID::uuid = UUID::uuid());
|
Component(UUID::uuid = UUID::uuid(), std::string fctn = "OpenLCP RLP Component");
|
||||||
|
|
||||||
// EPI 17 - ACN RLP on UDP
|
// EPI 17 - ACN RLP on UDP
|
||||||
virtual void UdpPayloadReceiver(PDU::Stream);
|
virtual void UdpPayloadReceiver(PDU::Stream);
|
||||||
|
@ -5,11 +5,11 @@ namespace sACN {
|
|||||||
/**
|
/**
|
||||||
* @brief Node::Node
|
* @brief Node::Node
|
||||||
* @param cid
|
* @param cid
|
||||||
|
* @param fctn
|
||||||
*/
|
*/
|
||||||
Node::Node(UUID::uuid cid)
|
Node::Node(UUID::uuid cid, std::string fctn)
|
||||||
: Component(cid)
|
: Component(cid, fctn)
|
||||||
{
|
{
|
||||||
fctn_ = "OpenLCP sACN Node";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} // SACN
|
} // SACN
|
||||||
|
@ -36,7 +36,7 @@ class Node
|
|||||||
, public Source
|
, public Source
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Node(UUID::uuid = UUID::uuid());
|
Node(UUID::uuid = UUID::uuid(), std::string fctn = "OpenLCP sACN Node");
|
||||||
};
|
};
|
||||||
|
|
||||||
} // SACN
|
} // SACN
|
||||||
|
@ -30,15 +30,14 @@ namespace sACN {
|
|||||||
/**
|
/**
|
||||||
* @brief Receiver::Receiver
|
* @brief Receiver::Receiver
|
||||||
* @param cid
|
* @param cid
|
||||||
|
* @param fctn
|
||||||
*
|
*
|
||||||
* Constructor. Register RLP vector callbacks.
|
* Constructor. Register RLP vector callbacks.
|
||||||
*/
|
*/
|
||||||
Receiver::Receiver(UUID::uuid cid)
|
Receiver::Receiver(UUID::uuid cid, std::string fctn)
|
||||||
: Component(cid)
|
: Component(cid, fctn)
|
||||||
, HoldLastLook(true)
|
, HoldLastLook(true)
|
||||||
{
|
{
|
||||||
fctn_ = "OpenLCP sACN Receiver";
|
|
||||||
|
|
||||||
RlpRegisterVector(VECTOR_ROOT_E131_DATA, std::bind(&Receiver::dataReceiver,
|
RlpRegisterVector(VECTOR_ROOT_E131_DATA, std::bind(&Receiver::dataReceiver,
|
||||||
this, std::placeholders::_1));
|
this, std::placeholders::_1));
|
||||||
RlpRegisterVector(VECTOR_ROOT_E131_EXTENDED, std::bind(&Receiver::extendedReceiver,
|
RlpRegisterVector(VECTOR_ROOT_E131_EXTENDED, std::bind(&Receiver::extendedReceiver,
|
||||||
|
@ -65,7 +65,7 @@ class Receiver
|
|||||||
: public virtual ACN::RLP::Component
|
: public virtual ACN::RLP::Component
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Receiver(UUID::uuid = UUID::uuid());
|
Receiver(UUID::uuid = UUID::uuid(), std::string fctn = "OpenLCP sACN Receiver");
|
||||||
~Receiver();
|
~Receiver();
|
||||||
|
|
||||||
void setHoldLastLook(const bool);
|
void setHoldLastLook(const bool);
|
||||||
|
@ -30,14 +30,14 @@ namespace sACN {
|
|||||||
/**
|
/**
|
||||||
* @brief Source::Source
|
* @brief Source::Source
|
||||||
* @param cid
|
* @param cid
|
||||||
|
* @param fctn
|
||||||
*/
|
*/
|
||||||
Source::Source(UUID::uuid cid)
|
Source::Source(UUID::uuid cid, std::string fctn)
|
||||||
: Component(cid)
|
: Component(cid, fctn)
|
||||||
, discovery_future_(discovery_exitSignal_.get_future())
|
, discovery_future_(discovery_exitSignal_.get_future())
|
||||||
, discovery_worker_(&Source::discovery_loop_, this)
|
, discovery_worker_(&Source::discovery_loop_, this)
|
||||||
, sendNullDiscovery(false)
|
, sendNullDiscovery(false)
|
||||||
{
|
{
|
||||||
fctn_ = "OpenLCP sACN Source";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -47,7 +47,7 @@ class Source
|
|||||||
: public virtual ACN::RLP::Component
|
: public virtual ACN::RLP::Component
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Source(UUID::uuid = UUID::uuid());
|
Source(UUID::uuid = UUID::uuid(), std::string fctn = "OpenLCP sACN Source");
|
||||||
~Source();
|
~Source();
|
||||||
|
|
||||||
virtual void create(const uint16_t);
|
virtual void create(const uint16_t);
|
||||||
|
@ -29,12 +29,11 @@ namespace ACN::SDT {
|
|||||||
/**
|
/**
|
||||||
* @brief Leader::Leader
|
* @brief Leader::Leader
|
||||||
* @param cid
|
* @param cid
|
||||||
|
* @param fctn
|
||||||
*/
|
*/
|
||||||
Leader::Leader(UUID::uuid cid)
|
Leader::Leader(UUID::uuid cid, std::string fctn)
|
||||||
: ACN::RLP::Component(cid)
|
: ACN::RLP::Component(cid, fctn)
|
||||||
{
|
{
|
||||||
fctn_ = "OpenLCP SDT Leader";
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 1.3.1. Recursive use of PDU Format in Other Protocols
|
* 1.3.1. Recursive use of PDU Format in Other Protocols
|
||||||
* ... within ACN as currently specified, there is just one higher layer
|
* ... within ACN as currently specified, there is just one higher layer
|
||||||
|
@ -38,7 +38,7 @@ class Leader
|
|||||||
: public ACN::RLP::Component
|
: public ACN::RLP::Component
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Leader(UUID::uuid = UUID::uuid());
|
Leader(UUID::uuid = UUID::uuid(), std::string fctn = "OpenLCP SDT Leader");
|
||||||
|
|
||||||
// RLP->SDT frames
|
// RLP->SDT frames
|
||||||
virtual void SdtReceiver(PDU::Message<RLP::Pdu>);
|
virtual void SdtReceiver(PDU::Message<RLP::Pdu>);
|
||||||
|
@ -30,12 +30,11 @@ namespace ACN::SDT {
|
|||||||
/**
|
/**
|
||||||
* @brief Member::Member
|
* @brief Member::Member
|
||||||
* @param cid
|
* @param cid
|
||||||
|
* @param fctn
|
||||||
*/
|
*/
|
||||||
Member::Member(UUID::uuid cid)
|
Member::Member(UUID::uuid cid, std::string fctn)
|
||||||
: ACN::RLP::Component(cid)
|
: ACN::RLP::Component(cid, fctn)
|
||||||
{
|
{
|
||||||
fctn_ = "OpenLCP SDT Member";
|
|
||||||
|
|
||||||
RlpRegisterVector(SDT_PROTOCOL_ID, std::bind(&Member::SdtReceiver, this,
|
RlpRegisterVector(SDT_PROTOCOL_ID, std::bind(&Member::SdtReceiver, this,
|
||||||
std::placeholders::_1));
|
std::placeholders::_1));
|
||||||
}
|
}
|
||||||
|
@ -34,7 +34,7 @@ class Member
|
|||||||
: public ACN::RLP::Component
|
: public ACN::RLP::Component
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Member(UUID::uuid = UUID::uuid());
|
Member(UUID::uuid = UUID::uuid(), std::string fctn = "OpenLCP SDT Member");
|
||||||
|
|
||||||
virtual void SdtReceiver(PDU::Message<RLP::Pdu>);
|
virtual void SdtReceiver(PDU::Message<RLP::Pdu>);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user