Stream Control Transmission Protocol
#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);
The SCTP protocol provides a reliable, end-to-end message transport service.
It has the following features:
- acknowledged error-free nonduplicated transfer of user data
- data fragmentation to conform to path MTU size
- sequenced delivery of user messages within multiple streams
- multi-homing
- protection against Denial of Service (DOS) attacks.
A descriptor referencing the socket, or -1 if an error occurs
(errno is set).
- 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.
IP
sctp_bindx(),
sctp_connectx(),
sctp_freeladdrs(),
sctp_freepaddrs(),
sctp_getladdrs(),
sctp_getpaddrs(),
sctp_peeloff(),
sctp_recvmsg(),
sctp_sendmsg()
RFC 2960, RFC 3257
Drafts:
- Socket API extension for stream control transmission protocol
in accord with draft-ietf-tsvwg-sctpsocket-07.txt.
- Stream control transmission protocol dynamic address reconfiguration.