4 #include <unordered_map>
8 #include "OCTET_STRING.h"
11 typedef void (*SubscriptionCallback)(E2AP_PDU_t*);
18 std::unordered_map<long, OCTET_STRING_t*> ran_functions_registered;
19 std::unordered_map<long, SubscriptionCallback> subscription_callbacks;
21 void wait_for_sctp_data();
25 SubscriptionCallback get_subscription_callback(long func_id);
27 void register_e2sm(long func_id, OCTET_STRING_t* ostr);
29 void register_subscription_callback(long func_id, SubscriptionCallback cb);
31 void encode_and_send_sctp_data(E2AP_PDU_t* pdu);
33 int run_loop(int argc, char* argv[]);