51 lines
796 B
C++
51 lines
796 B
C++
/**
|
|
* TcpClosed.h
|
|
*
|
|
* Class that is used when the TCP connection ends up in a closed state
|
|
*
|
|
* @author Emiel Bruijntjes <emiel.bruijntjes@copernica.com>
|
|
* @copyright 2015 - 2018 Copernica BV
|
|
*/
|
|
|
|
/**
|
|
* Include guard
|
|
*/
|
|
#pragma once
|
|
|
|
/**
|
|
* Set up namespace
|
|
*/
|
|
namespace AMQP {
|
|
|
|
/**
|
|
* Class definition
|
|
*/
|
|
class TcpClosed : public TcpState
|
|
{
|
|
public:
|
|
/**
|
|
* Constructor
|
|
* @param parent The parent object
|
|
*/
|
|
TcpClosed(TcpParent *parent) :
|
|
TcpState(parent) {}
|
|
|
|
/**
|
|
* Constructor
|
|
* @param state The to-be-copied state
|
|
*/
|
|
TcpClosed(const TcpState *state) :
|
|
TcpState(state) {}
|
|
|
|
/**
|
|
* Destructor
|
|
*/
|
|
virtual ~TcpClosed() noexcept = default;
|
|
};
|
|
|
|
/**
|
|
* End of namespace
|
|
*/
|
|
}
|
|
|