[erlang-bugs] Re: gen_sctp documentation

Raimo Niskanen raimo+erlang-bugs@REDACTED
Mon Jun 15 14:57:51 CEST 2009


On Wed, Jun 03, 2009 at 12:32:04PM -0500, Anders Nygren wrote:
> 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 "."
> >

Thank you for pointing this out. I have fixed it in R13B01.

Sorry about the delay, I have already answered but into
the void due to self-inflicted mailing list problems.

> >
> > /Anders
> >
> 
> ________________________________________________________________
> erlang-bugs mailing list. See http://www.erlang.org/faq.html
> erlang-bugs (at) erlang.org
> 

-- 

/ Raimo Niskanen, Erlang/OTP, Ericsson AB


More information about the erlang-bugs mailing list