In using the one2one model(SOCK_STREAM set on socket(2)),
should recvmsg(2) return the source address with msg_name field?
In my view this is not clear, and I think that source address should be
provided in using one2one model as well as one2many(SOCK_DGRAM set).
The reason why I think so is that on SCTP's one2one model the source
address is useful for recipient.
On TCP socket it isn't necessary because it is always same as
one which accept(2) retuened.
Meanwhile an association of SCTP will have one more addresses, so we
can't assure that the source address of the packet is same as
accept(2)'s addr.
P.S.
Wheter msg_name set using the one2one model or not, at least the
specification should be clear at socket api draft.
Regards, Masahiro.
--
--KOZUKA Masahiro, {^-^}/@kozuka.jp, http://www.kozuka.jp/
Received on Tue Mar 8 07:47:29 2005
This archive was generated by hypermail 2.1.8 : Mon Mar 13 2006 - 15:22:24 EST