Differences From Artifact [15a3d3213a]:
- File
src/OFTCPSocket.m
— part of check-in
[e53a4fd61c]
at
2016-05-28 11:37:46
on branch trunk
— Add a reference to OFStdIOStream_Win32Console
This is required for static linking, as otherwise
+[OFStdIOStream_Win32Console load] will not be called. (user: js, size: 14825) [annotate] [blame] [check-ins using]
To Artifact [2735f938b2]:
- File
src/OFTCPSocket.m
— part of check-in
[1de551cb5f]
at
2016-06-07 22:56:28
on branch trunk
— Add support for reusing OFStreams after close
Right now, this is only useful for OFTCPSocket, as this is the only
class so far not establishing the stream in the init method. However,
this adds the general infrastructure to allow reuse to all subclasses of
OFStream. (user: js, size: 14814) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
252 253 254 255 256 257 258 | uint16_t destinationPort = port; of_resolver_result_t **results, **iter; int errNo = 0; if (_socket != INVALID_SOCKET) @throw [OFAlreadyConnectedException exceptionWithSocket: self]; | < < < < < < < | 252 253 254 255 256 257 258 259 260 261 262 263 264 265 | uint16_t destinationPort = port; of_resolver_result_t **results, **iter; int errNo = 0; if (_socket != INVALID_SOCKET) @throw [OFAlreadyConnectedException exceptionWithSocket: self]; if (_SOCKS5Host != nil) { /* Connect to the SOCKS5 proxy instead */ host = _SOCKS5Host; port = _SOCKS5Port; } results = of_resolve_host(host, port, SOCK_STREAM); |
︙ | ︙ | |||
662 663 664 665 666 667 668 669 | @throw [OFGetOptionFailedException exceptionWithStream: self errNo: of_socket_errno()]; return v; } #endif @end | > > > > > > > > > > > > > > > | 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 | @throw [OFGetOptionFailedException exceptionWithStream: self errNo: of_socket_errno()]; return v; } #endif - (void)close { _listening = false; [self freeMemory: _address]; _address = NULL; _addressLength = 0; #ifdef OF_WII _port = 0; #endif [super close]; } @end |