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