I am working on Omnet++ where I am using the INET4 framework to simulate TCP between two nodes. I made my own machine learning algorithm and communicate with the TCP code. Now I am facing a problem in recording a variable in C++ ML code. How should I record a variable value in omnet++ without emitting signals? I just want to record a variable and plot it at the end of the simulation. I tried with the emitting signal by adding a signal variable in the .ned file of TCP and also in TcpConnection.h file. The problem with that is I have to implement variables in the TCP code, which I did but when I use state object in my .cc code it gives me a segmentation error. Thank you
I figure out the solution for it. Basically I am using cOutVector method for storing the data in the varibale you can also look in to it here coutVectoe