apropos recvfrom

Davide Rossetti (rossetti@apemaia.roma1.infn.it)
Thu, 15 Oct 1998 21:53:49 +0200 (MET DST)


hi all,

On Linux 2.1.125 (not sure, but also on 2.0.35)
I beg your pardon for my silliness. Now I got a strange result.
1) client side:
sendmsg() with
msg_iov = array of 3 iovec
msg_iovlen= 3
it returns 3 !!!

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 ?

I know that I decidedly am offtopic, but there is \epsilon probability
that this is a bug.

regards

+------------------------------------------------------------------+
|Rossetti Davide INFN - Sezione Roma I - gruppo V, prog. APEmille|
| web : http://apemaia.roma1.infn.it/~rossetti |
| """"" E-mail : davide.rossetti@roma1.infn.it |
| |o o| phone : (+39)-6-49914412 |
|--o00O-O00o-- fax : (+39)-6-4957697 |
| address: Dipartimento di Fisica (V.E.) |
| Universita' di Roma "La Sapienza" |
| P.le Aldo Moro,5 I - 00185 Roma - Italy|
| pgp pub. key: finger rossetti@apemaia.roma1.infn.it |
| |
|"Most people think about twice a year. I got famous by thinking |
| once a week." - George B. Shaw (see Appendix A) |
+------------------------------------------------------------------+

-
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/