1 .\" (C) Copyright Sridhar Samudrala IBM Corp. 2004, 2005.
3 .\" Permission is granted to distribute possibly modified copies
4 .\" of this manual provided the header is included verbatim,
5 .\" and in case of nontrivial modification author and date
6 .\" of the modification is added to the header.
8 .TH SCTP_PEELOFF 3 2005-10-25 "Linux 2.6" "Linux Programmer's Manual"
10 sctp_peeloff \- Branch off an association into a separate socket.
13 .B #include <sys/types.h>
14 .B #include <sys/socket.h>
15 .B #include <netinet/sctp.h>
17 .BI "int sctp_peeloff(int " sd ", sctp_assoc_t " assoc_id );
21 branches off an existing association
23 on a one-to-many style socket
25 into a separate socket. The new socket is a one-to-one style socket.
27 This is particularly desirable when, for instance, the application wishes to
28 have a number of sporadic message senders/receivers remain under the original
29 one-to-many style socket, but branch off those assocations carrying high volume
30 data traffic into their own separate socket descriptors.
32 On success, the new socket descriptor representing the branched-off asociation is returned.
33 On error, \-1 is returned, and
40 is not a valid descriptor.
43 The assoc id passed is invalid or if the socket is a one-to-one style socket.
46 Argument is a descriptor for a file, not a socket.
50 .BR sctp_connectx (3),
54 .BR sctp_getpaddrs (3),
55 .BR sctp_getladdrs (3),
56 .BR sctp_opt_info (3),