sctp_peeloff (2)
Leading comments
Copyright (c) 1983, 1991, 1993 The Regents of the University of California. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the fol...
NAME
sctp_peeloff - detach an association from a one-to-many socket to its own fdLIBRARY
Lb libcSYNOPSIS
In sys/types.h In sys/socket.h In netinet/sctp.h Ft int Fn sctp_peeloff int s sctp_assoc_t idDESCRIPTION
The Fn sctp_peeloff system call attempts detach the association specified by Fa id into its own separate socket.RETURN VALUES
The call returns -1 on failure and the new socket descriptor upon success.ERRORS
The Fn sctp_peeloff system call can return the following errors:- Bq Er ENOTCONN
- The Fa id given to the call does not map to a valid association.
- Bq Er E2BIG
- The size of the address list exceeds the amount of data provided.
- Bq Er EBADF
- The argument Fa s is not a valid descriptor.
- Bq Er ENOTSOCK
- The argument Fa s is not a socket.