gen_sctp documentation error

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

gen_sctp documentation error

Michal Ptaszek-2
Hello,

in the examples section of gen_sctp module (sctp_server.erl) it is said:

        {ok,S} = gen_sctp:open([{ip,IP},{port,Port}],[{recbuf,65536}]),
        io:format("Listening on ~w:~w. ~w~n", [IP,Port,S]),

but gen_sctp API has changed, so the example should probably now
look like:

        {ok,S} = gen_sctp:open(Port, [{recbuf, 65536}, {ip, IP}]),
        io:format("Listening on ~w:~w. ~w~n", [IP,Port,S]),

Best regards,
Michal Ptaszek
_______________________________________________
erlang-bugs mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-bugs
Reply | Threaded
Open this post in threaded view
|

Re: gen_sctp documentation error

Sverker Eriksson
Thank you. I'll correct that.

/Sverker, Erlang/OTP

Michal Ptaszek wrote:

> Hello,
>
> in the examples section of gen_sctp module (sctp_server.erl) it is said:
>
> {ok,S} = gen_sctp:open([{ip,IP},{port,Port}],[{recbuf,65536}]),
> io:format("Listening on ~w:~w. ~w~n", [IP,Port,S]),
>
> but gen_sctp API has changed, so the example should probably now
> look like:
>
> {ok,S} = gen_sctp:open(Port, [{recbuf, 65536}, {ip, IP}]),
> io:format("Listening on ~w:~w. ~w~n", [IP,Port,S]),
>
> Best regards,
> Michal Ptaszek
> _______________________________________________
> erlang-bugs mailing list
> [hidden email]
> http://erlang.org/mailman/listinfo/erlang-bugs
>
>  

_______________________________________________
erlang-bugs mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-bugs