Differences From Artifact [f0cdd75885]:
- File
src/OFTCPSocket+SOCKS5.m
— part of check-in
[f8422ce7e9]
at
2016-03-12 11:55:00
on branch trunk
— OFTCPSocket+SOCKS5.m: Use send/recv directly
This is necessary to make SOCKS5 support work with subclasses of
OFTCPSocket that override read and write, for example SSL sockets. (user: js, size: 3339) [annotate] [blame] [check-ins using]
To Artifact [5b08ee4ef4]:
- File src/OFTCPSocket+SOCKS5.m — part of check-in [2a2e17d8d0] at 2016-05-06 20:39:56 on branch trunk — Enable -Wsign-compare (user: js, size: 3418) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
28 29 30 31 32 33 34 | /* Reference for static linking */ int _OFTCPSocket_SOCKS5_reference; static void send_or_exception(OFTCPSocket *self, int socket, char *buffer, size_t length) { | > > > | | 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | /* Reference for static linking */ int _OFTCPSocket_SOCKS5_reference; static void send_or_exception(OFTCPSocket *self, int socket, char *buffer, size_t length) { if (length > SSIZE_MAX) @throw [OFOutOfRangeException exception]; if (send(socket, buffer, length, 0) != (ssize_t)length) @throw [OFWriteFailedException exceptionWithObject: self requestedLength: length errNo: of_socket_errno()]; } static void |
︙ | ︙ |