usrsctp: usrsctp_getsockopt() always returns -1
char buffer[4096];
socklen_t bufferLen;
int ret;
// Check if SCTP_RESET_STREAMS has been negotiated.
ret = usrsctp_getsockopt(this->socket, IPPROTO_SCTP, SCTP_RESET_STREAMS, buffer, &bufferLen);
The remote peer does support SCTP_RESET_STREAMS
(it’s Chrome or Firefox, which use usrsctp). However the code above always returns -1. so, unless I’m doing something wrong above, it’s kinda useless.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 25 (13 by maintainers)
Thanks @lgrahl, stupid wrong usage here, it works perfectly as you said 😃