Overview
Comment: | Minor documentation fix |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
a0394db77689666ae9463cb161ea2b50 |
User & Date: | js on 2017-09-24 16:34:24 |
Other Links: | manifest | tags |
Context
2017-09-24
| ||
17:35 | OFUDPSocket: Add support for async sending check-in: 842c55dd83 user: js tags: trunk | |
16:34 | Minor documentation fix check-in: a0394db776 user: js tags: trunk | |
15:57 | OFHTTPClient: Make sure requestString stays around check-in: 112085f4bc user: js tags: trunk | |
Changes
Modified src/OFStream.h from [c63c26554d] to [62644beb20].
︙ | |||
183 184 185 186 187 188 189 190 191 192 193 194 195 196 | 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 | + | * called again with the same buffer and maximum length when more * data has been received. If you want the next method in the * queue to handle the data received next, you need to return * false from the method. * @param selector The selector to call on the target. The signature must be * `bool (OFStream *stream, void *buffer, size_t length, * id context, id exception)`. * @param context A context object to pass along to the target */ - (void)asyncReadIntoBuffer: (void *)buffer length: (size_t)length target: (id)target selector: (SEL)selector context: (nullable id)context; |
︙ | |||
214 215 216 217 218 219 220 221 222 223 224 225 226 227 | 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 | + | * called again with the same buffer and exact length when more * data has been received. If you want the next method in the * queue to handle the data received next, you need to return * false from the method. * @param selector The selector to call on the target. The signature must be * `bool (OFStream *stream, void *buffer, size_t size, * id context, id exception)`. * @param context A context object to pass along to the target */ - (void)asyncReadIntoBuffer: (void *)buffer exactLength: (size_t)length target: (id)target selector: (SEL)selector context: (nullable id)context; |
︙ | |||
638 639 640 641 642 643 644 645 646 647 648 649 650 651 | 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 | + | * been received. If the method returns true, it will be called * again when the next line has been received. If you want the * next method in the queue to handle the next line, you need to * return false from the method * @param selector The selector to call on the target. The signature must be * `bool (OFStream *stream, OFString *line, id context, * id exception)`. * @param context A context object to pass along to the target */ - (void)asyncReadLineWithTarget: (id)target selector: (SEL)selector context: (nullable id)context; /*! * @brief Asynchronously reads with the specified encoding until a newline, |
︙ | |||
659 660 661 662 663 664 665 666 667 668 669 670 671 672 | 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 | + | * been received. If the method returns true, it will be called * again when the next line has been received. If you want the * next method in the queue to handle the next line, you need to * return false from the method * @param selector The selector to call on the target. The signature must be * `bool (OFStream *stream, OFString *line, id context, * id exception)`. * @param context A context object to pass along to the target */ - (void)asyncReadLineWithEncoding: (of_string_encoding_t)encoding target: (id)target selector: (SEL)selector context: (nullable id)context; # ifdef OF_HAVE_BLOCKS |
︙ | |||
815 816 817 818 819 820 821 822 823 824 825 826 827 828 | 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 | + | * the next write with the same callback or 0 if it should not * repeat. The buffer may be changed, so that every time a new * buffer and length can be specified while the callback stays * the same. * @param selector The selector to call on the target. The signature must be * `bool (OFStream *stream, const void *buffer, * size_t bytesWritten, id context, id exception)`. * @param context A context object to pass along to the target */ - (void)asyncWriteBuffer: (const void *)buffer length: (size_t)length target: (id)target selector: (SEL)selector context: (nullable id)context; |
︙ |
Modified src/OFTCPSocket.h from [79fa8a3d5c] to [6a0791ce59].
︙ | |||
124 125 126 127 128 129 130 131 132 133 134 135 136 137 | 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 | + | * * @param host The host to connect to * @param port The port on the host to connect to * @param target The target on which to call the selector once the connection * has been established * @param selector The selector to call on the target. The signature must be * `void (OFTCPSocket *socket, id context, id exception)`. * @param context A context object to pass along to the target */ - (void)asyncConnectToHost: (OFString *)host port: (uint16_t)port target: (id)target selector: (SEL)selector context: (nullable id)context; |
︙ | |||
186 187 188 189 190 191 192 193 194 195 196 197 198 199 | 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 | + | * @param target The target on which to execute the selector when a new * connection has been accepted. The method returns whether the * next incoming connection should be accepted by the specified * block as well. * @param selector The selector to call on the target. The signature must be * `bool (OFTCPSocket *socket, OFTCPSocket *acceptedSocket, * id context, id exception)`. * @param context A context object to pass along to the target */ - (void)asyncAcceptWithTarget: (id)target selector: (SEL)selector context: (nullable id)context; #ifdef OF_HAVE_BLOCKS /*! |
︙ |
Modified src/OFUDPSocket.h from [9375eeb6ac] to [dca0ed119a].
︙ | |||
122 123 124 125 126 127 128 129 130 131 132 133 134 135 | 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 | + | * @param host The host to resolve * @param port The port for the resulting address * @param target The target on which to call the selector once the host has been * resolved * @param selector The selector to call on the target. The signature must be * `void (OFString *host, uint16_t port, * of_udp_socket_address_t address, id context, id exception)`. * @param context A context object to pass along to the target */ + (void)asyncResolveAddressForHost: (OFString *)host port: (uint16_t)port target: (id)target selector: (SEL)selector context: (nullable id)context; |
︙ | |||
201 202 203 204 205 206 207 208 209 210 211 212 213 214 | 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 | + | * will be called again with the same buffer and maximum length * when more datagrams have been received. If you want the next * method in the queue to handle the datagram received next, you * need to return false from the method. * @param selector The selector to call on the target. The signature must be * `bool (OFUDPSocket *socket, void *buffer, size_t length, * of_udp_socket_address_t, id context, id exception)`. * @param context A context object to pass along to the target */ - (void)asyncReceiveIntoBuffer: (void *)buffer length: (size_t)length target: (id)target selector: (SEL)selector context: (nullable id)context; |
︙ |