2015-11-01 16:51:43 +08:00
|
|
|
/**
|
|
|
|
|
* TcpChannel.h
|
|
|
|
|
*
|
|
|
|
|
* Extended channel that can be constructed on top of a TCP connection
|
|
|
|
|
*
|
|
|
|
|
* @author Emiel Bruijntjes <emiel.bruijntjes@copernica.com>
|
2017-11-17 18:38:54 +08:00
|
|
|
* @copyright 2015 - 2017 Copernica BV
|
2015-11-01 16:51:43 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Include guard
|
|
|
|
|
*/
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Set up namespace
|
|
|
|
|
*/
|
|
|
|
|
namespace AMQP {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Class definition
|
|
|
|
|
*/
|
|
|
|
|
class TcpChannel : public Channel
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
/**
|
|
|
|
|
* Constructor
|
2017-11-17 18:38:54 +08:00
|
|
|
*
|
|
|
|
|
* The passed in connection pointer must remain valid for the
|
|
|
|
|
* lifetime of the channel.
|
|
|
|
|
*
|
2015-11-01 16:51:43 +08:00
|
|
|
* @param connection
|
|
|
|
|
*/
|
|
|
|
|
TcpChannel(TcpConnection *connection) :
|
|
|
|
|
Channel(&connection->_connection) {}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Destructor
|
|
|
|
|
*/
|
|
|
|
|
virtual ~TcpChannel() {}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* End of namespace
|
|
|
|
|
*/
|
|
|
|
|
}
|
|
|
|
|
|