18 lines
458 B
C++
18 lines
458 B
C++
#include "ConnectionHandler.hpp"
|
|
#include <iostream>
|
|
|
|
void ConnectionHandler::onConnected(AMQP::TcpConnection *connection)
|
|
{
|
|
std::cout << "TCP CONNECTED\n";
|
|
}
|
|
|
|
|
|
void ConnectionHandler::onReady(AMQP::TcpConnection *connection)
|
|
{
|
|
std::cout << "AMQP READY\n";
|
|
}
|
|
|
|
void ConnectionHandler::onError(AMQP::TcpConnection *connection, const char *message)
|
|
{
|
|
std::cerr << "AMQP error: " << message << std::endl;
|
|
} |