- //Register signal handler to stop
- signal(SIGINT, signalHandler);
- signal(SIGTERM, signalHandler);
-
- //Test SDL.
- XappSDL sdl = XappSDL("hw-xapp");
-
- //Initiate the Xapp functionality
- std::unique_ptr<Xapp> hw_xapp = std::make_unique<Xapp>(std::ref(config), std::ref(*rmr),std::ref(sdl));
-
-
- //define the startup mode.
- hw_xapp->startup();
-
- //Register Callback Handlers
- //Register E2 Msg Handlers - Subscription/Indication.
- //Register A1 Msg Handlers.
- //Register Callback Handlers
-
-
- //start the receiver thread listening at HW_PORT
- //currently only one receiver thread. In total how many receiver threads depend on the xapp developer.
- //Register all the handlers required and start the receiver
-
- //register_msgproc(RIC_SUB_RESP, sub_handler);
- //register_msgproc(RIC_SUB_DEL_RESP, sub_handler);
- //register_msgproc(RIC_SUB_FAILURE, sub_handler);
-