You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
482 B
48 lines
482 B
#include "Connection.hpp"
|
|
|
|
#include "Logger.hpp"
|
|
|
|
|
|
Connection::Connection(std::string host, int port)
|
|
: m_host(host)
|
|
, m_port(port)
|
|
{
|
|
TRACE;
|
|
}
|
|
|
|
|
|
Connection::~Connection()
|
|
{
|
|
TRACE;
|
|
}
|
|
|
|
|
|
std::string Connection::getHost() const
|
|
{
|
|
TRACE;
|
|
return m_host;
|
|
}
|
|
|
|
|
|
int Connection::getPort() const
|
|
{
|
|
TRACE;
|
|
return m_port;
|
|
}
|
|
|
|
|
|
void Connection::setHost(const std::string host)
|
|
{
|
|
TRACE;
|
|
m_host = host;
|
|
}
|
|
|
|
|
|
void Connection::setPort(const int port)
|
|
{
|
|
TRACE;
|
|
m_port = port;
|
|
}
|
|
|
|
|