Differences From Artifact [3021941e31]:
- File
src/OFStreamSocket.m
— part of check-in
[2a27cf3000]
at
2016-01-03 00:41:26
on branch trunk
— Update copyright
While at it, also update the mail address. (user: js, size: 3949) [annotate] [blame] [check-ins using]
To Artifact [77a66a4df1]:
- File
src/OFStreamSocket.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: 3966) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 | if (_socket == INVALID_SOCKET) @throw [OFNotOpenException exceptionWithObject: self]; close(_socket); _socket = INVALID_SOCKET; _atEndOfStream = false; } - (void)dealloc { if (_socket != INVALID_SOCKET) [self close]; [super dealloc]; } @end | > > | 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 | if (_socket == INVALID_SOCKET) @throw [OFNotOpenException exceptionWithObject: self]; close(_socket); _socket = INVALID_SOCKET; _atEndOfStream = false; [super close]; } - (void)dealloc { if (_socket != INVALID_SOCKET) [self close]; [super dealloc]; } @end |