gen_sctp documentation

Anders Nygren anders.nygren@REDACTED
Wed Jun 3 19:10:51 CEST 2009


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