[erlang-questions] gen_sctp:connect/5 change

Raimo Niskanen <>
Wed Apr 2 15:16:58 CEST 2008


Hi list!

I am in the process of fixing active mode for gen_sctp, and up
comes a question about why connect/5 returns {ok,Assoc} instead
of just ok. The connect/5 code does an implicit recv/2 to get
an #sctp_assoc_change{} message to return.

A change to connect/5 not returning the #sctp_assoc_change{}
message, letting the user explicitly call recv/2 or in 
active mode receive the #sctp_assoc_change{} would simplify
the connect/5 code and perhaps make gen_sctp more SCTP.
But would connect/5 become much less usable?

gen_sctp is still in beta state. If a change is appropriate,
it should be made as soon as possible.

Nevertheless, these changes will not make it into R12B-2.

-- 

/ Raimo Niskanen, Erlang/OTP, Ericsson AB



More information about the erlang-questions mailing list