Overview
Comment: | OFSPXStreamSocket: Fix wrong socket type |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
005cf5cd96c73b279be98111630fb01a |
User & Date: | js on 2022-10-21 22:15:56 |
Other Links: | manifest | tags |
Context
2022-10-22
| ||
12:09 | OFHTTPClient: Correctly handle empty path check-in: b804fc2d16 user: js tags: trunk | |
2022-10-21
| ||
22:15 | OFSPXStreamSocket: Fix wrong socket type check-in: 005cf5cd96 user: js tags: trunk | |
13:07 | Document more exceptions check-in: a62b254fda user: js tags: trunk | |
Changes
Modified src/OFSPXStreamSocket.m from [94f78e3e0d] to [a588145b61].
︙ | ︙ | |||
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) |
︙ | ︙ |