aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2011-07-13 14:44:55 +0200
committerSverker Eriksson <[email protected]>2011-07-13 14:44:55 +0200
commit456902c73a5ad5a38cf4b2bf1ccd92c8ffff3eec (patch)
tree1e596758252a27de844fe7007791ddab404b39d4
parent59c43904b029c5ccde511fcb83a809ed8370d887 (diff)
parent16155c5c3eb362bad07d23f0d8be459d6552515c (diff)
downloadotp-456902c73a5ad5a38cf4b2bf1ccd92c8ffff3eec.tar.gz
otp-456902c73a5ad5a38cf4b2bf1ccd92c8ffff3eec.tar.bz2
otp-456902c73a5ad5a38cf4b2bf1ccd92c8ffff3eec.zip
Merge branch 'sverker/gen_sctp-open-docfix' into dev
* sverker/gen_sctp-open-docfix: Fix small error in example code of gen_sctp documentation
-rw-r--r--lib/kernel/doc/src/gen_sctp.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/kernel/doc/src/gen_sctp.xml b/lib/kernel/doc/src/gen_sctp.xml
index 5ceb82ae41..b761b6bd83 100644
--- a/lib/kernel/doc/src/gen_sctp.xml
+++ b/lib/kernel/doc/src/gen_sctp.xml
@@ -990,7 +990,7 @@
server(IP, Port) when is_tuple(IP) orelse IP == any orelse IP == loopback,
is_integer(Port) -&gt;
- {ok,S} = gen_sctp:open([{ip,IP},{port,Port}],[{recbuf,65536}]),
+ {ok,S} = gen_sctp:open(Port, [{recbuf,65536}, {ip,IP}]),
io:format("Listening on ~w:~w. ~w~n", [IP,Port,S]),
ok = gen_sctp:listen(S, true),
server_loop(S).