Hello,
I created a .msg in OMNeT which extends from inet::FieldsChunk and I don't fully understand how the ChunkLength really works for my case.
In my message I have a defined a message buffer (uint8_t bffer[2048]) which gets filled more or less. I now the exact length of the content which get written into the buffer. But when it comes to the ChunkLength I dont now to what value I should set it. Should I set the Chunklength to 2048B or to the size of the content which gets written into the buffer?
What would happen if I set the ChunlLength to lets say 1000B but my Buffer is 2048B and the content inside my buffer uses 1500B of that buffer? I already tried this and the content of the buffer can be read without any errors after transmission, but I don't understand how this ist possible because I thought that if I set the ChunkLength of my Packt to a smaller value than the buffer size that it gets cut during transmission.
Can someone help me understand?
Hello, I created a .msg in OMNeT which extends from inet::FieldsChunk and I don't fully understand how the ChunkLength really works for my case. In my message I have a defined a message buffer (uint8_t bffer[2048]) which gets filled more or less. I now the exact length of the content which get written into the buffer. But when it comes to the ChunkLength I dont now to what value I should set it. Should I set the Chunklength to 2048B or to the size of the content which gets written into the buffer? What would happen if I set the ChunlLength to lets say 1000B but my Buffer is 2048B and the content inside my buffer uses 1500B of that buffer? I already tried this and the content of the buffer can be read without any errors after transmission, but I don't understand how this ist possible because I thought that if I set the ChunkLength of my Packt to a smaller value than the buffer size that it gets cut during transmission. Can someone help me understand?
Thanks