[英]Cannot open SCTP Socket with socket type SOCK_DGRAM
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. 在CentOS 3.2.63上返回的错误是93,在Windows 8上返回的错误是10043,这意味着不支持协议。 But I can open the socket successfully with socket type SOCK_RAW,SOCK_STREAM. 但是我可以使用套接字类型SOCK_RAW,SOCK_STREAM成功打开套接字。 Can't open with SOCK_SEQPACKET in windows 8 but can open in CentOS. 在Windows 8中无法使用SOCK_SEQPACKET打开,但可以在CentOS中打开。
SCTP must be used with either SOCK_SEQPACKET or SOCK_STREAM. SCTP必须与SOCK_SEQPACKET或SOCK_STREAM一起使用。 See Sockets API Extensions for the Stream Control Transmission Protocol (SCTP), RFC 6458 for more details on how to use SCTP. 有关如何使用SCTP的更多详细信息,请参阅流控制传输协议(SCTP)的Sockets API扩展,RFC 6458 。
Not all OS support SCTP and even existing support might miss some features. 并非所有操作系统都支持SCTP,甚至现有的支持都可能缺少某些功能。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.