recvmsg and sendmsg

recvmsg and sendmsg

Post by Mark » Tue, 06 Apr 1999 04:00:00



It seems that recvmsg and sendmsg return msg_iovlen, although I am not
quite certain that this is the case.  It seems to make more sense to
return the number of bytes written to the control message data.  What is
the theory behind all this?
 
 
 

recvmsg and sendmsg

Post by Ian Collin » Wed, 07 Apr 1999 04:00:00



> It seems that recvmsg and sendmsg return msg_iovlen, although I am not
> quite certain that this is the case.  It seems to make more sense to
> return the number of bytes written to the control message data.  What is
> the theory behind all this?

Not on any system I know, they do return the number of bytes
sent/received.

        Ian

 
 
 

recvmsg and sendmsg

Post by Wlme » Fri, 09 Apr 1999 04:00:00


><HTML><PRE>Subject: Re: recvmsg and sendmsg

>Date: Tue, Apr 6, 1999 05:57 EDT


>> It seems that recvmsg and sendmsg return msg_iovlen, although I am not
>> quite certain that this is the case.  It seems to make more sense to
>> return the number of bytes written to the control message data.  What is
>> the theory behind all this?

>Not on any system I know, they do return the number of bytes
>sent/received.

>    Ian
></PRE></HTML>

I am kind of wondering about this also.  Your answer was not very illuminating.
 Aren't two structures sent and received here?  It seems that the return value
is far less than the size of these two structures after looking at some code in
Steven's APUE.