Differences From Artifact [94f78e3e0d]:
- File
src/OFSPXStreamSocket.m
— part of check-in
[25adea9a23]
at
2022-08-06 21:14:31
on branch trunk
— Don't use struct sockaddr in OFSocketAddress
struct sockaddr can contain a variable length array, which breaks the
union. (user: js, size: 9577) [annotate] [blame] [check-ins using] [more...]
To Artifact [a588145b61]:
- File src/OFSPXStreamSocket.m — part of check-in [005cf5cd96] at 2022-10-21 22:15:56 on branch trunk — OFSPXStreamSocket: Fix wrong socket type (user: js, size: 9574) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
186 187 188 189 190 191 192 | int flags; #endif if (_socket != OFInvalidSocketHandle) @throw [OFAlreadyConnectedException exceptionWithSocket: self]; if ((_socket = socket(address->sockaddr.ipx.sipx_family, | | | 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 | int flags; #endif if (_socket != OFInvalidSocketHandle) @throw [OFAlreadyConnectedException exceptionWithSocket: self]; if ((_socket = socket(address->sockaddr.ipx.sipx_family, SOCK_STREAM | SOCK_CLOEXEC, NSPROTO_SPX)) == OFInvalidSocketHandle) { *errNo = OFSocketErrNo(); return false; } #if SOCK_CLOEXEC == 0 && defined(HAVE_FCNTL) && defined(FD_CLOEXEC) if ((flags = fcntl(_socket, F_GETFD, 0)) != -1) |
︙ | ︙ |