I should probably clarify "correct" packet size to be "the same packet size". I have clients sending data to a "server" which has 2 tcpApps, one which is a sink and one which is a session. The session app initialises much later into the simulation. This session app then has to send the combined total of all the data that the "server" has received to another server.
I could calculate this by hand, and I could write a C script to calculate and then write the INI file, but that would be as a last resort.
For example:
**.MSAN_srv.tcpApp[1].sendBytes = 1 MiB
This is what I have at the moment, now if there are 10 clients sending 1 MiB data to that intermediate server, That would need to be changed to
**.MSAN_srv.tcpApp[1].sendBytes = 10 MiB
I would like to know if there is an easier way of doing this (such as by using variables). Sorry, I am fairly new to OMNeT++ and have only recently started exploring really manipulating the ini files.