Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
U
UERANSIM
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
UERANSIM
Commits
308666c0
Commit
308666c0
authored
May 10, 2021
by
aligungr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
RLS improvements
parent
9ec57471
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
87 additions
and
0 deletions
+87
-0
src/ue/rls/ctl_task.cpp
src/ue/rls/ctl_task.cpp
+48
-0
src/ue/rls/ctl_task.hpp
src/ue/rls/ctl_task.hpp
+39
-0
No files found.
src/ue/rls/ctl_task.cpp
0 → 100644
View file @
308666c0
//
// 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
src/ue/rls/ctl_task.hpp
0 → 100644
View file @
308666c0
//
// 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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment