Hai:

On Mon, 19 Mar 2007, Hai Huang wrote:

I have tried the one-to-many code example in the draft and discovered that the 
recvmsg function returns immediately with return value of 0. What went wrong?



Sorry, I didn't look at the example carefully. I assume you are seeing
"Operation not supported .."? recvmsg() on one-to-many requires the the msg_name in the msghdr struct to be non-null (and hence, msg_namelen
to be non-zero).


One more question: How to get the association ID as a client? Call connect 
first? or call sctp_sendmsg first then using getsockopt to get the association 
ID?

You can get the association id by subscribing to the sctp_association_event.
recvmsg() after connect()/sendmsg() will get the notification after the
association is established and the id can be obtained from the
sctp_assoc_change structure.

-venu



This message posted from opensolaris.org
_______________________________________________
networking-discuss mailing list
[email protected]

_______________________________________________
networking-discuss mailing list
[email protected]

Reply via email to