SCTP example code will not compile with these errors

View: New views
2 Messages — Rating Filter:   Alert me  

SCTP example code will not compile with these errors

by Andreas Wagner-8 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

frea, bhyde and I found some errors in the sctp client and server example
code from the docs. Someone with power to edit the docs should fix these
mistakes:

sctp_server:
- The server/1 definition should end with a period not a semicolon
- orlese should be changed to orelse

sctp_client:
- The include file path should be "kernel/include/inet_sctp.hrl"
- init:stop should end with a period not a semicolon
- {ok Assoc} should be {ok, Assoc}

http://erlang.org/doc/man/gen_sctp.html#examples

Regards,
Andreas Wagner

Re: SCTP example code will not compile with these errors

by Raimo Niskanen-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, May 28, 2009 at 05:11:47PM -0400, Andreas Wagner wrote:

> Hi all,
>
> frea, bhyde and I found some errors in the sctp client and server example
> code from the docs. Someone with power to edit the docs should fix these
> mistakes:
>
> sctp_server:
> - The server/1 definition should end with a period not a semicolon
> - orlese should be changed to orelse
>
> sctp_client:
> - The include file path should be "kernel/include/inet_sctp.hrl"
> - init:stop should end with a period not a semicolon
> - {ok Assoc} should be {ok, Assoc}
>

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

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

> http://erlang.org/doc/man/gen_sctp.html#examples
>
> Regards,
> Andreas Wagner

--

/ Raimo Niskanen, Erlang/OTP, Ericsson AB

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