Differences From Artifact [16f6a959b9]:
- File
src/OFTCPSocket.m
— part of check-in
[b4cd87cd81]
at
2017-05-21 23:57:34
on branch trunk
— Use closesocket() instead of close()
Previously, socket_helpers.h would just define close() to whatever is
needed to close a socket. However, this makes it possible to
accidentally call a socket-specific close on something that is not a
socket. Having to explicitly call closesocket() (and defining it to
close() on platforms where it's the same) prevents this. (user: js, size: 14861) [annotate] [blame] [check-ins using]
To Artifact [56b097e84a]:
- File src/OFTCPSocket.m — part of check-in [1287e77e04] at 2017-05-22 23:31:26 on branch trunk — Make includes of unistd.h and fcntl.h conditional (user: js, size: 14889) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
21 22 23 24 25 26 27 | #include <assert.h> #include <errno.h> #include <stdio.h> #include <stdlib.h> #include <string.h> | > | > | 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | #include <assert.h> #include <errno.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #ifdef HAVE_FCNTL_H # include <fcntl.h> #endif #import "OFTCPSocket.h" #import "OFTCPSocket+SOCKS5.h" #import "OFString.h" #import "OFThread.h" #import "OFTimer.h" #import "OFRunLoop.h" |
︙ | ︙ |