I try this but get Error Reason: eisconn (The socket is already connected.)<br><br>Could i have done anything else wrong?<br><br> gen_sctp:open(lists:merge(IP,?sctp_client_options)) of<br> {ok, Socket} -><br> AssocList = lists:foldl(fun(IP, AccList) -> <br>
case gen_sctp:connect(Socket, IP, Port,[], ?sctp_connect_timeout) of<br> {ok, Assoc} -><br> [Assoc | AccList];<br> {error, Reason} -><br>
AccList<br> end<br> end, [], IPList),<br><br>thanks for the help<br><br><br><br><div><span class="gmail_quote">2008/5/29, Serge Aleynikov <<a href="mailto:saleyn@gmail.com">saleyn@gmail.com</a>>:</span><blockquote class="gmail_quote" style="margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; margin-left: 0.80ex; border-left-color: #cccccc; border-left-width: 1px; border-left-style: solid; padding-left: 1ex">
You can call gen_sctp:connect/4 multiple times. Note that this call doesn't create new sockets but establishes a new association on a given socket.<br><br> Serge<br><br> Mikael Lixenstrand wrote:<br><blockquote class="gmail_quote" style="margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0.80ex; border-left-color: #cccccc; border-left-width: 1px; border-left-style: solid; padding-left: 1ex">
<div><span class="e" id="q_11a346c8775b0408_1"> I have some questions regarding gen_sctp and multihoming. It´s possible to<br> create a socket to multiple local peers but i haven't figured out how to<br> connect a socket to multiple IPs on another host.<br>
<br> Is this possible with gen_sctp or would i need to implement something using<br> more sockets?<br> I would like to have one socket with multiple associations, one for each<br> peer on remote host.<br><br> /mikael<br><br>
<br><br></span></div> ------------------------------------------------------------------------<br><br> _______________________________________________<br> erlang-questions mailing list<br><a href="mailto:erlang-questions@erlang.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">erlang-questions@erlang.org</a><br>
<a href="http://www.erlang.org/mailman/listinfo/erlang-questions" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.erlang.org/mailman/listinfo/erlang-questions</a><br></blockquote><br></blockquote>
</div><br><br clear="all"><br>-- <br>****************************<br> Mikael Lixenstrand <br> Slättadammsgatan 9 a 12 <br> 417 27 Göteborg<br> mob : 0707 593809 <br> icq :169264851 <br>
msn: <a href="mailto:lixen@hotmail.com">lixen@hotmail.com</a><br>****************************