From faea8584311fcb5365c585280e5e9b2364ed121e Mon Sep 17 00:00:00 2001
From: Raimo Niskanen
Date: Fri, 2 Sep 2011 10:38:39 +0200
Subject: erts,kernel: Add type stream sockets to SCTP
---
lib/kernel/doc/src/gen_sctp.xml | 16 ++++++++++------
1 file changed, 10 insertions(+), 6 deletions(-)
(limited to 'lib/kernel/doc/src')
diff --git a/lib/kernel/doc/src/gen_sctp.xml b/lib/kernel/doc/src/gen_sctp.xml
index 688cd0f78f..b9f23674f0 100644
--- a/lib/kernel/doc/src/gen_sctp.xml
+++ b/lib/kernel/doc/src/gen_sctp.xml
@@ -254,15 +254,19 @@
-
+
+
Set up a socket to listen.
Sets up a socket to listen on the IP address and port number
- it is bound to. IsServer must be true
- or false.
- In the contrast to TCP, in SCTP there is no listening queue length.
- If IsServer is true the socket accepts new associations, i.e.
- it will become an SCTP server socket.
+ it is bound to.
+ For type seqpacket sockets (the default)
+ IsServer must be true or false.
+ In the contrast to TCP, in SCTP there is no listening queue length.
+ If IsServer is true the socket accepts new associations, i.e.
+ it will become an SCTP server socket.
+ For type stream sockets Backlog defines
+ the backlog queue length just like in TCP.
--
cgit v1.2.3
From d6d9371d50e7e9ad8708e914b72fa755ce5a5385 Mon Sep 17 00:00:00 2001
From: Raimo Niskanen
Date: Fri, 21 Oct 2011 17:51:34 +0200
Subject: kernel: Documented gen_sctp:peeloff/2
---
lib/kernel/doc/src/gen_sctp.xml | 38 +++++++++++++++++++++++++++++++++++++-
1 file changed, 37 insertions(+), 1 deletion(-)
(limited to 'lib/kernel/doc/src')
diff --git a/lib/kernel/doc/src/gen_sctp.xml b/lib/kernel/doc/src/gen_sctp.xml
index b9f23674f0..418bfae4b8 100644
--- a/lib/kernel/doc/src/gen_sctp.xml
+++ b/lib/kernel/doc/src/gen_sctp.xml
@@ -45,7 +45,15 @@
SUSE Linux Enterprise Server 10 (x86_64) kernel 2.6.16.27-0.6-smp,
with lksctp-tools-1.0.6, briefly on Solaris 10, and later on
SUSE Linux Enterprise Server 10 Service Pack 1 (x86_64)
- kernel 2.6.16.54-0.2.3-smp with lksctp-tools-1.0.7.
+ kernel 2.6.16.54-0.2.3-smp with lksctp-tools-1.0.7,
+ and later also on FreeBSD 8.2.
+
+
+ This module was written for one-to-many style sockets
+ (type seqpacket). With the addition of
+ peeloff/2, one-to-one style
+ sockets (type stream) were introduced.
+
Record definitions for the gen_sctp module can be found using:
-include_lib("kernel/include/inet_sctp.hrl").
These record definitions use the "new" spelling 'adaptation',
@@ -299,11 +307,39 @@
is used. In particular, the socket is opened in
binary and
passive mode,
+ with SockType seqpacket,
and with reasonably large
kernel and driver
buffers.
+
+
+
+ Peel off a type stream socket from a type seqpacket one
+
+
+
+ Branch off an existing association Assoc
+ in a socket Socket of type seqpacket
+ (one-to-may style) into
+ a new socket NewSocket of type stream
+ (one-to-one style).
+
+
+ The existing association argument Assoc
+ can be either a
+
+ #sctp_assoc_change{}
+
+ record as returned from e.g
+ recv/*,
+ connect/* or
+ from a listening socket in active mode. Or it can be just
+ the field assoc_id integer from such a record.
+
+
+
--
cgit v1.2.3