Differences From Artifact [40b6afda8c]:
- File src/OFStreamSocket.h — part of check-in [13a8f43898] at 2020-04-26 18:10:31 on branch trunk — Move accept and listen OF{TCP -> Stream}Socket (user: js, size: 4531) [annotate] [blame] [check-ins using]
To Artifact [ded40b41a4]:
- File
src/OFStreamSocket.h
— part of check-in
[d7ddb3dbc7]
at
2020-04-26 19:39:06
on branch trunk
— Remove redundant arguments from blocks
Arguments that can just be captured by the block don't need to be
repeated as an argument. A lot of arguments passed to a delegate are
therefore not needed for a block. (user: js, size: 4450) [annotate] [blame] [check-ins using] [more...]
| ︙ | ︙ | |||
25 26 27 28 29 30 31 | @class OFStreamSocket; #ifdef OF_HAVE_BLOCKS /*! * @brief A block which is called when the socket accepted a connection. * | < | | 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
@class OFStreamSocket;
#ifdef OF_HAVE_BLOCKS
/*!
* @brief A block which is called when the socket accepted a connection.
*
* @param acceptedSocket The socket which has been accepted
* @param exception An exception which occurred while accepting the socket or
* `nil` on success
* @return A bool whether the same block should be used for the next incoming
* connection
*/
typedef bool (^of_stream_socket_async_accept_block_t)(
OFStreamSocket *acceptedSocket, id _Nullable exception);
#endif
/*!
* @protocol OFStreamSocketDelegate OFStreamSocket.h ObjFW/OFStreamSocket.h
*
* A delegate for OFStreamSocket.
|
| ︙ | ︙ |