Commit 308666c0 authored by aligungr's avatar aligungr

RLS improvements

parent 9ec57471
//
// This file is a part of UERANSIM open source project.
// Copyright (c) 2021 ALİ GÜNGÖR.
//
// The software and all associated files are licensed under GPL-3.0
// and subject to the terms and conditions defined in LICENSE file.
//
#include "ctl_task.hpp"
namespace nr::ue
{
RlsControlTask::RlsControlTask(TaskBase *base) : m_udpTask{}
{
m_logger = base->logBase->makeUniqueLogger(base->config->getLoggerPrefix() + "rls-ctl");
}
void RlsControlTask::initialize(RlsUdpTask *udpTask)
{
m_udpTask = udpTask;
}
void RlsControlTask::onStart()
{
}
void RlsControlTask::onLoop()
{
NtsMessage *msg = take();
if (!msg)
return;
switch (msg->msgType)
{
default:
m_logger->unhandledNts(msg);
break;
}
delete msg;
}
void RlsControlTask::onQuit()
{
}
} // namespace nr::ue
//
// This file is a part of UERANSIM open source project.
// Copyright (c) 2021 ALİ GÜNGÖR.
//
// The software and all associated files are licensed under GPL-3.0
// and subject to the terms and conditions defined in LICENSE file.
//
#pragma once
#include "udp_task.hpp"
#include <ue/nts.hpp>
#include <ue/types.hpp>
#include <utils/nts.hpp>
namespace nr::ue
{
class RlsControlTask : public NtsTask
{
private:
std::unique_ptr<Logger> m_logger;
RlsUdpTask *m_udpTask;
public:
explicit RlsControlTask(TaskBase *base);
~RlsControlTask() override = default;
protected:
void onStart() override;
void onLoop() override;
void onQuit() override;
public:
void initialize(RlsUdpTask *udpTask);
};
} // namespace nr::ue
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment