Reorganize directories and switch libaries to using asn1c
[it/test.git] / simulators / e2sim / e2sim.cpp
similarity index 85%
rename from simulators/e2sim/src/e2agent.cpp
rename to simulators/e2sim/e2sim.cpp
index 07d52cd..77f6be1 100644 (file)
 
 #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);
 
@@ -60,6 +39,7 @@ int main(int argc, char* 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)