Still haven't figured out what the problem might be. I try another time here<br><br>I tried this in the erlang shell with a running program with <br> gen_sctp:open([{ip, {10,80,250,112}},{ip, {10,70,128,96}} ,{port,33333}] ++ ?sctp_options),<br>
<br>{ok, Socket} = gen_sctp:open([{ip, {10,30,40,50}}]).<br>{ok, Assoc1} =gen_sctp:connect(Socket,{10,80,250,112},33333,[], 6000).<br>{ok,{sctp_assoc_change,comm_up,0,10,10,1}}<br><br>{ok, Asso21} = gen_sctp:connect(Socket,{10,70,128,96},33333,[], 6000).<br>
<br>=ERROR REPORT==== 2-Jun-2008::08:52:19 ===<br>Error in process <0.38.0> on node 'asd@asd' with exit value: {{badmatch,{error,eisconn}},[{erl_eval,expr,3}]}<br><br>** exited: {{badmatch,{error,eisconn}},[{erl_eval,expr,3}]} **<br>
<br>Someone have any idea what the problem might be?<br>I'm using R11B-5.<br><br><div><span class="gmail_quote">2008/5/29, Mikael Lixenstrand <<a href="mailto:mikael@lixenstrand.se">mikael@lixenstrand.se</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">
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" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">saleyn@gmail.com</a>>:</span><div>
<span class="e" id="q_11a352fd65f823c4_1"><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> 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>
</span></div></div><br><br clear="all"><br>-- <br>****************************<br><span class="sg"> 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" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">lixen@hotmail.com</a><br>**************************** </span></blockquote>
</div><br>