Is it possible to change the recv buffer size dynamically for network pr
Is it possible to change the recv buffer size dynamically for network process or subprocess?
Sat, 21 Mar 2020 11:01:05 +0800
For example, I have binary message format like this:
It has a four-bytes header and payload.
The four-bytes header is the payload size of the message.
First I want to set the size of the recv buffer to 4. After the four bytes arrived, I parse them and get the size of the payload. Then I set the size of the recv buffer to the size of the payload to recv the payload.