Differences From Artifact [4453ea5c07]:
- File
src/OFSCTPSocket.m
— part of check-in
[0fd2b1b4c8]
at
2024-05-04 20:05:40
on branch sctp
— OFSCTPSocket: Use a dictionary for message info
This is more extensible. Without this, extending it later would result
in an API and ABI breakage. (user: js, size: 14195) [annotate] [blame] [check-ins using] [more...]
To 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]
︙ | ︙ | |||
461 462 463 464 465 466 467 | .iov_len = length }; struct sctp_sndinfo sndinfo = { .snd_sid = (uint16_t) [[info objectForKey: OFSCTPStreamID] unsignedShortValue], .snd_ppid = (uint32_t) [[info objectForKey: OFSCTPPPID] unsignedLongValue], | < | > | 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 | .iov_len = length }; struct sctp_sndinfo sndinfo = { .snd_sid = (uint16_t) [[info objectForKey: OFSCTPStreamID] unsignedShortValue], .snd_ppid = (uint32_t) [[info objectForKey: OFSCTPPPID] unsignedLongValue], .snd_flags = ([[info objectForKey: OFSCTPUnordered] boolValue] ? SCTP_UNORDERED : 0) }; if (_socket == OFInvalidSocketHandle) @throw [OFNotOpenException exceptionWithObject: self]; if (length > SSIZE_MAX) @throw [OFOutOfRangeException exception]; |
︙ | ︙ |