Commit b05f5484 authored by aligungr's avatar aligungr

Performance improvements

parent 12707188
......@@ -62,9 +62,9 @@ void RlsUdpLayer::send(int cellId, const rls::RlsMessage &msg)
}
}
void RlsUdpLayer::receiveRlsPdu(const InetAddress &addr, const OctetString &pdu)
void RlsUdpLayer::receiveRlsPdu(const InetAddress &addr, uint8_t *buffer, size_t size)
{
auto msg = rls::DecodeRlsMessage(OctetView{pdu});
auto msg = rls::DecodeRlsMessage(OctetView{buffer, size});
if (msg == nullptr)
{
m_logger->err("Unable to decode RLS message");
......
......@@ -57,7 +57,7 @@ class RlsUdpLayer
public:
void checkHeartbeat();
void send(int cellId, const rls::RlsMessage &msg);
void receiveRlsPdu(const InetAddress &address, const OctetString& pdu);
void receiveRlsPdu(const InetAddress &address, uint8_t* buffer, size_t size);
};
} // namespace nr::ue
......@@ -95,7 +95,7 @@ void UeTask::onLoop()
{
InetAddress peer;
size_t n = fdBase->receive(fdId, m_buffer.get(), BUFFER_SIZE, peer);
rlsUdp->receiveRlsPdu(peer, OctetString::FromArray(m_buffer.get(), n));
rlsUdp->receiveRlsPdu(peer, m_buffer.get(), n);
}
}
......
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