aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2011-07-13 14:50:01 +0200
committerSverker Eriksson <[email protected]>2011-07-13 14:50:01 +0200
commitdc17b0471b4f2055adb7f0c41e8c596448a4f012 (patch)
treee6415628b1c9098c32127f34d3a3d7213f57fa4e /lib
parent88df4cc3b8f15f4aa621117ad99fd43fafe5dc5b (diff)
parent456902c73a5ad5a38cf4b2bf1ccd92c8ffff3eec (diff)
downloadotp-dc17b0471b4f2055adb7f0c41e8c596448a4f012.tar.gz
otp-dc17b0471b4f2055adb7f0c41e8c596448a4f012.tar.bz2
otp-dc17b0471b4f2055adb7f0c41e8c596448a4f012.zip
Merge branch 'dev' into major
* dev: Fix small error in example code of gen_sctp documentation
Diffstat (limited to 'lib')
-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).