Differences From Artifact [196ec0c55f]:
- File
src/OFStreamSocket.m
— part of check-in
[44f45c2e35]
at
2017-01-09 17:36:36
on branch trunk
— Update copyright
Forgot to add 2017, even though I already did quite some changes in
2017. (user: js, size: 3972) [annotate] [blame] [check-ins using]
To Artifact [d2e763431e]:
- File
src/OFStreamSocket.m
— part of check-in
[4af49a13c3]
at
2017-05-07 20:10:13
on branch trunk
— Small code style change
Casts are now written like types in variable declarations. (user: js, size: 3974) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
49 50 51 52 53 54 55 | } - (bool)lowlevelIsAtEndOfStream { return _atEndOfStream; } | | | 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 | } - (bool)lowlevelIsAtEndOfStream { return _atEndOfStream; } - (size_t)lowlevelReadIntoBuffer: (void *)buffer length: (size_t)length { ssize_t ret; if (_socket == INVALID_SOCKET) @throw [OFNotOpenException exceptionWithObject: self]; |
︙ | ︙ | |||
85 86 87 88 89 90 91 | if (ret == 0) _atEndOfStream = true; return ret; } | | | 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 | if (ret == 0) _atEndOfStream = true; return ret; } - (void)lowlevelWriteBuffer: (const void *)buffer length: (size_t)length { if (_socket == INVALID_SOCKET) @throw [OFNotOpenException exceptionWithObject: self]; if (_atEndOfStream) @throw [OFWriteFailedException exceptionWithObject: self |
︙ | ︙ |