Differences From Artifact [29ca29fac2]:
- File
src/OFSCTPSocket.m
— part of check-in
[5f8070d792]
at
2024-05-04 20:21:38
on branch trunk
— OFSCTPSocket: Fix setting SCTP_UNORDERED
This worked by pure coincidence since true and SCTP_UNORDERED are both
1 on Linux. (user: js, size: 14218) [annotate] [blame] [check-ins using]
To Artifact [ae3353be38]:
- File src/OFSCTPSocket.m — part of check-in [580e5ab656] at 2024-05-05 08:37:00 on branch trunk — Fix OFSCTPSocket on FreeBSD (user: js, size: 14238) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
362 363 364 365 366 367 368 369 370 371 372 | struct iovec iov = { .iov_base = buffer, .iov_len = length }; struct sctp_rcvinfo rcvinfo; socklen_t rcvinfoSize = (socklen_t)sizeof(rcvinfo); unsigned int infotype = SCTP_RECVV_RCVINFO; if (_socket == OFInvalidSocketHandle) @throw [OFNotOpenException exceptionWithObject: self]; | > | | | 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 | struct iovec iov = { .iov_base = buffer, .iov_len = length }; struct sctp_rcvinfo rcvinfo; socklen_t rcvinfoSize = (socklen_t)sizeof(rcvinfo); unsigned int infotype = SCTP_RECVV_RCVINFO; int flags; if (_socket == OFInvalidSocketHandle) @throw [OFNotOpenException exceptionWithObject: self]; if ((ret = sctp_recvv(_socket, &iov, 1, NULL, NULL, &rcvinfo, &rcvinfoSize, &infotype, &flags)) < 0) @throw [OFReadFailedException exceptionWithObject: self requestedLength: length errNo: _OFSocketErrNo()]; if (info != NULL) { if (infotype == SCTP_RECVV_RCVINFO && |
︙ | ︙ |