Reputation: 2731
int sock = socket(AF_INET, SOCK_DGRAM, IPPROTO_SCTP);
the returned error is 93 on CentOS 3.2.63 and 10043 on windows 8 which means Protocol not supported. But I can open the socket successfully with socket type SOCK_RAW,SOCK_STREAM. Can't open with SOCK_SEQPACKET in windows 8 but can open in CentOS.
Upvotes: 2
Views: 1333
Reputation: 123441
SCTP must be used with either SOCK_SEQPACKET or SOCK_STREAM. See Sockets API Extensions for the Stream Control Transmission Protocol (SCTP), RFC 6458 for more details on how to use SCTP.
Not all OS support SCTP and even existing support might miss some features.
Upvotes: 2