Caution: This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs.

SCTP

Stream Control Transmission Protocol

Synopsis:

#include <sys/socket.h>
#include <netinet/in.h>

int socket( PF_INET, 
            SOCK_DGRAM, 
            IPPROTO_SCTP);
	    
Or,
	    
int socket( PF_INET,
            SOCK_STREAM,
            IPPROTO_SCTP);
	    

Description:

The SCTP protocol provides a reliable, end-to-end message transport service. It has the following features:

Returns:

A descriptor referencing the socket, or -1 if an error occurs (errno is set).

Errors:

EACCES
Permission to create a socket of the specified type and/or protocol is denied.
EMFILE
The per-process descriptor table is full.
ENFILE
The system file table is full.
ENOBUFS
Insufficient buffer space available. The socket can't be created until sufficient resources are freed.
ENOMEM
Not enough memory.
EPROTONOSUPPORT
The protocol type or the specified protocol isn't supported within this domain.

See also:

IP

sctp_bindx(), sctp_connectx(), sctp_freeladdrs(), sctp_freepaddrs(), sctp_getladdrs(), sctp_getpaddrs(), sctp_peeloff(), sctp_recvmsg(), sctp_sendmsg()

RFC 2960, RFC 3257

Drafts: