64 lines
1.0 KiB
C
64 lines
1.0 KiB
C
|
|
/**
|
||
|
|
* Class describing connection close acknowledgement frame
|
||
|
|
*
|
||
|
|
* @copyright 2014 Copernica BV
|
||
|
|
*/
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Set up namespace
|
||
|
|
*/
|
||
|
|
namespace AMQP {
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Class implementation
|
||
|
|
*/
|
||
|
|
class ConnectionCloseOKFrame : public ConnectionFrame
|
||
|
|
{
|
||
|
|
protected:
|
||
|
|
/**
|
||
|
|
* Encode a frame on a string buffer
|
||
|
|
*
|
||
|
|
* @param buffer buffer to write frame to
|
||
|
|
*/
|
||
|
|
virtual void fill(OutBuffer& buffer) const override
|
||
|
|
{
|
||
|
|
// call base
|
||
|
|
ConnectionFrame::fill(buffer);
|
||
|
|
}
|
||
|
|
public:
|
||
|
|
/**
|
||
|
|
* Constructor based on a received frame
|
||
|
|
*
|
||
|
|
* @param frame received frame
|
||
|
|
*/
|
||
|
|
ConnectionCloseOKFrame(ReceivedFrame &frame) :
|
||
|
|
ConnectionFrame(frame)
|
||
|
|
{}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* construct a channelcloseokframe object
|
||
|
|
*/
|
||
|
|
ConnectionCloseOKFrame() :
|
||
|
|
ConnectionFrame(0)
|
||
|
|
{}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Destructor
|
||
|
|
*/
|
||
|
|
virtual ~ConnectionCloseOKFrame() {}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Method id
|
||
|
|
*/
|
||
|
|
virtual uint16_t methodID() const override
|
||
|
|
{
|
||
|
|
return 51;
|
||
|
|
}
|
||
|
|
};
|
||
|
|
|
||
|
|
/**
|
||
|
|
* end namespace
|
||
|
|
*/
|
||
|
|
}
|
||
|
|
|