Differences From 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]
To Artifact [b406096bcb]:
- File src/OFStreamSocket.m — part of check-in [61c1932caf] at 2012-09-16 15:43:45 on branch trunk — OFStream: Use lowlevel as prefix instead of _. (user: js, size: 3430) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
61 62 63 64 65 66 67 | #endif + socket { return [[[self alloc] init] autorelease]; } | | | | | 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 | #endif + socket { return [[[self alloc] init] autorelease]; } - (BOOL)lowlevelIsAtEndOfStream { return atEndOfStream; } - (size_t)lowlevelReadIntoBuffer: (void*)buffer length: (size_t)length { ssize_t ret; if (sock == INVALID_SOCKET) @throw [OFNotConnectedException exceptionWithClass: [self class] socket: self]; |
︙ | ︙ | |||
101 102 103 104 105 106 107 | if (ret == 0) atEndOfStream = YES; return ret; } | | | | 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 | if (ret == 0) atEndOfStream = YES; return ret; } - (void)lowlevelWriteBuffer: (const void*)buffer length: (size_t)length { if (sock == INVALID_SOCKET) @throw [OFNotConnectedException exceptionWithClass: [self class] socket: self]; if (atEndOfStream) { OFWriteFailedException *e; |
︙ | ︙ |