#include "e2sim_defs.h"
#include "e2sim_sctp.hpp"
-#include "asn_e2ap.hpp"
#include "e2ap_message_handler.hpp"
using namespace std;
-void test(void)
-{
- e2ap_pdu_t* pdu = new_e2ap_pdu();
-
- gNB_config gnb_cfg;
-
- e2ap_create_ENDCX2SetupResponse(pdu, gnb_cfg);
-
- e2ap_print_pdu(pdu);
-
- //Encode into buffer
- sctp_buffer_t data;
- e2ap_encode_pdu(pdu, data.buffer, sizeof(data.buffer), data.len);
-
-}
-
int main(int argc, char* argv[]){
-
- LOG_I("E2 Agent (E2 Simulator) Version %s", VERSION);
-
- // test();
- // return 0;
+ LOG_I("Start E2 Agent (E2 Simulator)");
options_t ops = read_input_options(argc, argv);
sctp_buffer_t recv_buf;
LOG_I("[SCTP] Waiting for SCTP data");
+
while(1) //constantly looking for data on SCTP interface
{
if(sctp_receive_data(client_fd, recv_buf) <= 0)