On 07/09/2016 13:44, Christos Zoulas wrote:
> Are you planning to change our kernel so that it handles MSG_TRUNC like linux
> does (return the actual length of the buffer instead of ignoring the flag)?
Yes, because it saves on looping.
But I can do that separately from this.
> How about handling
In article <9925602d-ba77-ab23-106d-35a799b8a...@marples.name>,
Roy Marples wrote:
>Hi List
>
>I use recvmsg(2) a fair bit in code.
>However, a lot of the time I can't be certain how large a buffer I would
>need, so they all ship with a handy function called recvmsg_
Hi List
I use recvmsg(2) a fair bit in code.
However, a lot of the time I can't be certain how large a buffer I would
need, so they all ship with a handy function called recvmsg_realloc,
which as you can guess, will realloc the last iovec so that the whole
message fits. Think of it