Overview
Comment: | OFStream: More flexible repeating async writes |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
1084b23ef749fa92c0f3a737c9eae58e |
User & Date: | js on 2017-09-24 15:13:55 |
Other Links: | manifest | tags |
Context
2017-09-24
| ||
15:18 | Make GCC happy again check-in: 55a159ff58 user: js tags: trunk | |
15:13 | OFStream: More flexible repeating async writes check-in: 1084b23ef7 user: js tags: trunk | |
13:31 | OFHTTPClient: Use asynchronous writes check-in: 502a688f3d user: js tags: trunk | |
Changes
Modified src/OFHTTPClient.m from [efcbdf0935] to [87324b6d23].
︙ | |||
516 517 518 519 520 521 522 | 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 | - - + + | [_client->_delegate client: _client didEncounterException: e forRequest: _request]; return false; } } |
︙ | |||
546 547 548 549 550 551 552 | 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 | - + - - - - - + + + + + - + | if ((body = [_request body]) != nil) { [socket asyncWriteBuffer: [body items] length: [body count] * [body itemSize] target: self selector: @selector(socket:didWriteBody:length: context:exception:) context: nil]; |
︙ |
Modified src/OFRunLoop.m from [8ab72d20c1] to [20e274a7c7].
︙ | |||
283 284 285 286 287 288 289 | 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 | - + + + - - + + + + | _writtenLength += length; if (_writtenLength != _length && exception == nil) return true; # ifdef OF_HAVE_BLOCKS if (_block != NULL) { |
︙ |
Modified src/OFStream.h from [7472119df2] to [c63c26554d].
︙ | |||
64 65 66 67 68 69 70 | 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 | - + + + - - + + + - - + + + | OFString *_Nullable line, id _Nullable exception); /*! * @brief A block which is called when data was written to the stream. * * @param stream The stream to which data was written * @param buffer The buffer which was written to the stream |
︙ | |||
803 804 805 806 807 808 809 | 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 | - - - + + + + + - - + + - + + + + + | * @note The stream must implement @ref fileDescriptorForWriting and return a * valid file descriptor in order for this to work! * * @param buffer The buffer from which the data is written into the stream. The * buffer needs to be valid until the write request is completed! * @param length The length of the data that should be written * @param target The target on which the selector should be called when the |
︙ |