1 Apr 2007 14:09
Re: Socket API draft
Randall Stewart <randall <at> lakerest.net>
2007-04-01 12:09:06 GMT
2007-04-01 12:09:06 GMT
Sirigiri, Anil Kumar Reddy (STSD) wrote: > Hi, > > Can someone please clarify my following doubts about socket API draft: > > 1/ Should there be a bind() prior to sctp_bindx() ? -- I see it > mentioned in one of tsvwg's mails, in the past, but couldn't find an > answer. In theory you should be able to use sctp_bindx instead of bind(). > > 2/ What is the use of sctp_opt_info() to have assoc_id as the parameter > ? I see that all sctp_opt_info() options are having the assoc_id in the > option argument structures. Though, there is no harm in having it, I > just have this question out of curiosity to know the reason behind it. sctp_opt_info() was created for O/S's that cannot pass information in on a getsockopt() call. You want to pass info in when you are explicitly getting information on an association. In BSD land either sctp_opt_info or getsockopt() will work.. in fact sctp_opt_info just calls a getsockopt()... since BSD allows the passing of information in to the getsockopt call. Other o/s's .. for example solaris .. use a streams based stack which is pretty strict on not allowing data coming in to a getsockopt call.. at least thats what I have been told. Hope that helps..(Continue reading)
RSS Feed