> 2) server side:
> recvmsg() with
> msg_iov = array of 2 iovec
> msg_iovlen = 2
> it returns 3 !!! (msg_flags==0)
> browsing http://www.opengroup.org/onlinepubs/7908799/xns/recvmsg.html,
> it seems that both functions should return the total recvd/sent bytes.
> Am I wrong ?
> In case I am, how can I get the exact fill status of my recvd iovecs,
> that is, how many bytes got received ?
You do. The result means that the datagram only carried 3 bytes of payload.
How you map that to your iovs is a user space problem.
-Andi
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/