This commit is contained in:
Erik Foris 2024-03-22 16:28:29 +01:00
parent 45fa45ee2c
commit a09d784d52

View File

@ -88,13 +88,6 @@ void Xapp::stop(void){
void Xapp::startup(SubscriptionHandler &sub_ref) {
std::cout << "Startup beeing called";
while (true)
{
std::cout << "Send sub. req. inside the while true";
std::cout << "yeet";
startup_subscribe_requests();
}
subhandler_ref = &sub_ref;
@ -127,7 +120,15 @@ void Xapp::startup(SubscriptionHandler &sub_ref) {
std::cout << "Querying target gNB" << std::endl;
rnib_gnblist.push_back(GNB_ID);
}
while (
true
)
{
std::cout << "Send sub. req.";
std::cout << "yeet";
startup_subscribe_requests();
}
// open external control socket in thread and wait for message
ext_control_thr_rx = std::unique_ptr<std::thread>(new std::thread{&Xapp::handle_external_control_message, this, SOCKET_PORT_EXT});