2021-08-12 13:13:00 -04:00
|
|
|
/*
|
|
|
|
rpt.h
|
|
|
|
|
|
|
|
Copyright (c) 2021 Kevin Matz (kevin.matz@gmail.com)
|
|
|
|
|
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
of this software and associated documentation files (the "Software"), to deal
|
|
|
|
in the Software without restriction, including without limitation the rights
|
|
|
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
|
copies of the Software, and to permit persons to whom the Software is
|
|
|
|
furnished to do so, subject to the following conditions:
|
|
|
|
|
|
|
|
The above copyright notice and this permission notice shall be included in all
|
|
|
|
copies or substantial portions of the Software.
|
|
|
|
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
|
SOFTWARE.
|
|
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
|
2021-08-12 13:46:25 -04:00
|
|
|
#include "acn/pdu.h"
|
|
|
|
|
2021-08-12 13:13:00 -04:00
|
|
|
namespace RDMnet {
|
|
|
|
namespace RPT {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief 1.2.3 RDM Packet Transport (RPT)
|
|
|
|
*
|
|
|
|
* RPT transports RDM messages over IP and supports a multi-controller
|
|
|
|
* environment. RPT equipment relies on initial configuration by LLRP, or by
|
|
|
|
* alternative means, to operate correctly. The RPT protocol is designed to
|
|
|
|
* scale communication to tens of thousands of Components via use of the Broker
|
|
|
|
* Protocol. The ultimate limit to the size of a system is determined by the
|
|
|
|
* infrastructure and not by the protocol itself.
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
2021-08-12 13:46:25 -04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief The RPT::Pdu class
|
|
|
|
*/
|
|
|
|
class Pdu
|
|
|
|
: public ACN::PDU::Pdu
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
Pdu();
|
|
|
|
void iStream(ACN::PDU::Stream) override;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
namespace REQUEST {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief The RPT::REQUEST::Pdu class
|
|
|
|
*/
|
|
|
|
class Pdu
|
|
|
|
: public ACN::PDU::Pdu
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
Pdu();
|
|
|
|
void iStream(ACN::PDU::Stream) override;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace REQUEST
|
|
|
|
|
|
|
|
namespace STATUS {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief The RPT::STATUS::Pdu class
|
|
|
|
*/
|
|
|
|
class Pdu
|
|
|
|
: public ACN::PDU::Pdu
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
Pdu();
|
|
|
|
void iStream(ACN::PDU::Stream) override;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace STATUS
|
|
|
|
|
|
|
|
namespace NOTIFICATION {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief The RPT::NOTIFICATION::Pdu class
|
|
|
|
*/
|
|
|
|
class Pdu
|
|
|
|
: public ACN::PDU::Pdu
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
Pdu();
|
|
|
|
void iStream(ACN::PDU::Stream) override;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace NOTIFICATION
|
|
|
|
|
|
|
|
|
|
|
|
namespace COMMAND {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief The RPT::COMMAND::Pdu class
|
|
|
|
*/
|
|
|
|
class Pdu
|
|
|
|
: public ACN::PDU::Pdu
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
Pdu();
|
|
|
|
void iStream(ACN::PDU::Stream) override;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace COMMAND
|
|
|
|
|
2021-08-12 13:13:00 -04:00
|
|
|
} // namespace RPT
|
|
|
|
} // namespace RDMnet
|