sctp_peeloff man page on SmartOS

Man page or keyword search:  
man Server   16655 pages
apropos Keyword Search (all sections)
Output format
SmartOS logo
[printable version]

SCTP_PEELOFF(3SOCKET)					 SCTP_PEELOFF(3SOCKET)

NAME
       sctp_peeloff  - branch off existing association from a one-to-many SCTP
       socket to create a one-to-one STP socket

SYNOPSIS
       cc [ flag... ] file... -lsocket	-lnsl	-lsctp	[ library... ]
       #include <sys/types.h>
       #include <sys/socket.h>
       #include <netinet/sctp.h>

       int sctp_peeloff(int sock, sctp_assoc_t id);

DESCRIPTION
       The sctp_peeloff() function branches off an existing association from a
       one-to-many  style  SCTP socket into a separate socket file descriptor.
       The resulting branched-off socket is a one-to-one style SCTP socket and
       is confined to operations allowed on a one-to-one style SCTP socket.

       The sock argument is a one-to-many socket. The association specified by
       the id argument is branched off sock.

RETURN VALUES
       Upon successful completion, the	sctp_peeloff()	function  returns  the
       file  descriptor	 that references the branched-off socket. The function
       returns -1 if an error occurs.

ERRORS
       The sctp_peeloff() function fails under the following conditions.

       EOPTNOTSUPP
		      The sock	argument  is  not  a  one-to-many  style  SCTP
		      socket.

       EINVAL
		      The  id is 0 or greater than the maximum number of asso‐
		      ciations for sock.

       EMFILE
		      Failure to create a new user  file  descriptor  or  file
		      structure.

ATTRIBUTES
       See attributes(5) for descriptions of the following attributes:

       ┌────────────────────┬─────────────────┐
       │  ATTRIBUTE TYPE    │ ATTRIBUTE VALUE │
       ├────────────────────┼─────────────────┤
       │Interface Stability │ Evolving	      │
       ├────────────────────┼─────────────────┤
       │MT-Level	    │ Safe	      │
       └────────────────────┴─────────────────┘

SEE ALSO
       in.h(3HEAD), libsctp(3LIB), socket(3SOCKET), sctp(7P)

				 Mar 05, 2004		 SCTP_PEELOFF(3SOCKET)
[top]

List of man pages available for SmartOS

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net