gen_sctp documentation

Anders Nygren anders.nygren@REDACTED
Wed Jun 3 19:32:04 CEST 2009


I forgot this thing also in the sctp_server.erl example

      {ok,S} = gen_sctp:open([{ip,IP},{port,Port}],[{sctp_recbuf,65536}]),
should be
    {ok,S} = gen_sctp:open([{ip,IP},{port,Port},{recbuf,65536}]),

/Anders

On Wed, Jun 3, 2009 at 12:10 PM, Anders Nygren <anders.nygren@REDACTED> wrote:
> I have started playing with SCTP and found some errors in the documentation
>
> When receiving a sctp_paddr_change event
> - addr is supposed to be an ip_address(), but it is {ip_address(),port()}
> - state value addr_confirmed is not documented
>
>
> A number of errors in the example code
> server/0
> should be
> server ->
>    server(any,2006).
>
> server/1, ends with a ";" instead of "."
>
> server/2
> orlese should be orelse
> sctp_recbuf should be recbuf
>
> server_loop/1
> io:format("Error: ~p~n", [Data])
> should be better as
> io:format("Received: ~p~n", [Data])
>
>
> sctp_client.erl
> missing
> -include_lib("kernel/include/inet_sctp.hrl").
>
> client/1 should be
> client([Host]) ->
>    client(Host, 2006).
>
> client/1 last clause ends with ";" instead of "."
>
>
> /Anders
>


More information about the erlang-bugs mailing list