Differences From Artifact [987460de9d]:
- File src/OFStreamSocket.m — part of check-in [8892ae9fcc] at 2012-07-12 01:28:46 on branch trunk — Don't access isa directly. (user: js, size: 3348) [annotate] [blame] [check-ins using]
To Artifact [fbc78fae5c]:
- File
src/OFStreamSocket.m
— part of check-in
[440e95fd4a]
at
2012-09-12 17:27:53
on branch trunk
— Split -[OFStream fileDescriptor].
It is now -[fileDescriptorForReading] and -[fileDescriptorForWriting].
The split was necessary as some stream types (e.g. OFProcess) don't have
a single file descriptor, but two. This allows to use those stream types
with OFStreamObserver as well. (user: js, size: 3409) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
142 143 144 145 146 147 148 | if (ioctlsocket(sock, FIONBIO, &v) == SOCKET_ERROR) @throw [OFSetOptionFailedException exceptionWithClass: [self class] stream: self]; } #endif | | > > > > > | 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 | if (ioctlsocket(sock, FIONBIO, &v) == SOCKET_ERROR) @throw [OFSetOptionFailedException exceptionWithClass: [self class] stream: self]; } #endif - (int)fileDescriptorForReading { return sock; } - (int)fileDescriptorForWriting { return sock; } - (void)close { if (sock == INVALID_SOCKET) |
︙ | ︙ |