platform driver needs a refactor before output can be const keyword
This commit is contained in:
parent
c811469c95
commit
7c40861383
|
@ -64,7 +64,7 @@ void Component::UdpPayloadReceiver(PDU::Stream stream)
|
|||
*/
|
||||
void Component::rlpSendUdp (const uint32_t vector,
|
||||
const PDU::Message< PDU::pdu_data > data,
|
||||
const SDT::UDP::ipAddress& ip) const
|
||||
const SDT::UDP::ipAddress& ip)
|
||||
{
|
||||
RLP::UDP::transport transport(true);
|
||||
rlpSend(transport, vector, data, ip);
|
||||
|
@ -96,7 +96,7 @@ void Component::TcpPacketReceiver(PDU::Stream stream)
|
|||
*/
|
||||
void Component::rlpSendTcp (const uint32_t vector,
|
||||
const PDU::Message<PDU::pdu_data> data,
|
||||
const SDT::UDP::ipAddress& ip) const
|
||||
const SDT::UDP::ipAddress& ip)
|
||||
{
|
||||
RLP::TCP::transport transport(true);
|
||||
rlpSend(transport, vector, data, ip);
|
||||
|
@ -145,7 +145,7 @@ void Component::RlpRegisterVector(uint32_t vect, PDU::Handler<RLP::Pdu> handle)
|
|||
void Component::rlpSend(ACN::RLP::message_transport& transport,
|
||||
const uint32_t vector,
|
||||
const PDU::Message<PDU::pdu_data> data,
|
||||
const SDT::UDP::ipAddress& ip) const
|
||||
const SDT::UDP::ipAddress& ip)
|
||||
{
|
||||
// rlp header
|
||||
auto header = std::make_shared<RLP::rlp_header>();
|
||||
|
@ -182,7 +182,7 @@ void Component::rlpSend(ACN::RLP::message_transport& transport,
|
|||
* write to the network.
|
||||
*/
|
||||
void Component::rlpSend(const PDU::Stream stream,
|
||||
const SDT::UDP::ipAddress& ip) const
|
||||
const SDT::UDP::ipAddress& ip)
|
||||
{
|
||||
(void)stream;
|
||||
(void)ip;
|
||||
|
|
|
@ -51,12 +51,12 @@ public:
|
|||
// EPI 17 - ACN RLP on UDP
|
||||
virtual void UdpPayloadReceiver(PDU::Stream);
|
||||
void rlpSendUdp(const uint32_t vector, const PDU::Message<PDU::pdu_data> data,
|
||||
const SDT::UDP::ipAddress&) const;
|
||||
const SDT::UDP::ipAddress&);
|
||||
|
||||
// EPI 33 - ACN RLP Operation on TCP
|
||||
virtual void TcpPacketReceiver(PDU::Stream);
|
||||
void rlpSendTcp(const uint32_t vector, const PDU::Message<PDU::pdu_data> data,
|
||||
const SDT::UDP::ipAddress&) const;
|
||||
const SDT::UDP::ipAddress&);
|
||||
|
||||
protected:
|
||||
void RlpReceiver(PDU::Message<RLP::Pdu>);
|
||||
|
@ -64,9 +64,9 @@ protected:
|
|||
|
||||
void rlpSend(ACN::RLP::message_transport&, const uint32_t vector,
|
||||
const PDU::Message<PDU::pdu_data> data,
|
||||
const SDT::UDP::ipAddress&) const;
|
||||
const SDT::UDP::ipAddress&);
|
||||
|
||||
virtual void rlpSend(const PDU::Stream, const SDT::UDP::ipAddress&) const;
|
||||
virtual void rlpSend(const PDU::Stream, const SDT::UDP::ipAddress&);
|
||||
|
||||
private:
|
||||
std::map<uint32_t, std::vector<PDU::Handler<RLP::Pdu>>> rlp_vectors_;
|
||||
|
|
|
@ -192,7 +192,7 @@ void Source::discoveryAnnounce()
|
|||
void Source::sendExtendedFrame(const uint16_t vector,
|
||||
std::shared_ptr<ACN::PDU::pdu_header> header,
|
||||
std::shared_ptr<ACN::PDU::pdu_data> data,
|
||||
const ACN::SDT::UDP::ipAddress& ip) const
|
||||
const ACN::SDT::UDP::ipAddress& ip)
|
||||
{
|
||||
if (!(vector == VECTOR_E131_EXTENDED_DISCOVERY ||
|
||||
vector == VECTOR_E131_EXTENDED_SYNCHRONIZATION))
|
||||
|
|
|
@ -62,7 +62,7 @@ protected:
|
|||
void sendExtendedFrame(const uint16_t vector,
|
||||
std::shared_ptr<ACN::PDU::pdu_header> header,
|
||||
std::shared_ptr<ACN::PDU::pdu_data> data,
|
||||
const ACN::SDT::UDP::ipAddress&) const;
|
||||
const ACN::SDT::UDP::ipAddress&);
|
||||
|
||||
private:
|
||||
std::unordered_map <uint16_t, Universe *> universes_;
|
||||
|
|
Loading…
Reference in New Issue