[erlang-questions] gen_sctp multi-homing
Mikael Lixenstrand
mikael@REDACTED
Thu May 29 16:58:25 CEST 2008
I try this but get Error Reason: eisconn (The socket is already connected.)
Could i have done anything else wrong?
gen_sctp:open(lists:merge(IP,?sctp_client_options)) of
{ok, Socket} ->
AssocList = lists:foldl(fun(IP, AccList) ->
case gen_sctp:connect(Socket, IP, Port,[],
?sctp_connect_timeout) of
{ok, Assoc} ->
[Assoc | AccList];
{error, Reason} ->
AccList
end
end, [], IPList),
thanks for the help
2008/5/29, Serge Aleynikov <saleyn@REDACTED>:
>
> 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.
>
> Serge
>
> Mikael Lixenstrand wrote:
>
>> I have some questions regarding gen_sctp and multihoming. It´s possible to
>> create a socket to multiple local peers but i haven't figured out how to
>> connect a socket to multiple IPs on another host.
>>
>> Is this possible with gen_sctp or would i need to implement something
>> using
>> more sockets?
>> I would like to have one socket with multiple associations, one for each
>> peer on remote host.
>>
>> /mikael
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> erlang-questions mailing list
>> erlang-questions@REDACTED
>> http://www.erlang.org/mailman/listinfo/erlang-questions
>>
>
>
--
****************************
Mikael Lixenstrand
Slättadammsgatan 9 a 12
417 27 Göteborg
mob : 0707 593809
icq :169264851
msn: lixen@REDACTED
****************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20080529/2bc0e499/attachment.htm>
More information about the erlang-questions
mailing list