Overview
Comment: | OFTCPSocket: Use OF_KINDOF for block types |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
53172692a6e75e18c8422d433e6cf5c5 |
User & Date: | js on 2018-10-07 21:06:14 |
Other Links: | manifest | tags |
Context
2018-10-13
| ||
13:43 | OFData+MessagePackValue: More precise exceptions check-in: f28731c106 user: js tags: trunk | |
2018-10-07
| ||
21:06 | OFTCPSocket: Use OF_KINDOF for block types check-in: 53172692a6 user: js tags: trunk | |
02:39 | OFDNSResolver: Look at static hosts to get address check-in: 4d335e89d6 user: js tags: trunk | |
Changes
Modified src/OFTCPSocket.h from [38f799c939] to [65cbd0fc74].
︙ | ︙ | |||
31 32 33 34 35 36 37 | /*! * @brief A block which is called when the socket connected. * * @param socket The socket which connected * @param exception An exception which occurred while connecting the socket or * `nil` on success */ | | | | > | | 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 | /*! * @brief A block which is called when the socket connected. * * @param socket The socket which connected * @param exception An exception which occurred while connecting the socket or * `nil` on success */ typedef void (^of_tcp_socket_async_connect_block_t)( OF_KINDOF(OFTCPSocket *) socket, id _Nullable exception); /*! * @brief A block which is called when the socket accepted a connection. * * @param socket The socket which accepted the 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_tcp_socket_async_accept_block_t)( OF_KINDOF(OFTCPSocket *) socket, OF_KINDOF(OFTCPSocket *) acceptedSocket, id _Nullable exception); #endif /*! * @class OFTCPSocket OFTCPSocket.h ObjFW/OFTCPSocket.h * * @brief A class which provides methods to create and use TCP sockets. * |
︙ | ︙ |