Differences From Artifact [fc62eafd6e]:
- File src/OFTCPSocket.h — part of check-in [5d8349a8f6] at 2012-09-16 10:19:49 on branch trunk — Add -[OFTCPSocket asyncAcceptWithBlock:]. (user: js, size: 5295) [annotate] [blame] [check-ins using]
To Artifact [804b5d55d9]:
- File
src/OFTCPSocket.h
— part of check-in
[4d9a641d87]
at
2012-09-19 23:02:02
on branch trunk
— Make async I/O possible without blocks.
Async connecting is still missing. (user: js, size: 5800) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
169 170 171 172 173 174 175 176 177 178 179 180 181 182 | /** * \brief Accept an incoming connection. * * \return An autoreleased OFTCPSocket for the accepted connection. */ - (OFTCPSocket*)accept; #ifdef OF_HAVE_BLOCKS /** * \brief Asyncronously ccept an incoming connection. * * \param block The block to execute when a new connection has been accepted. * Returns whether the next incoming connection should be accepted * by the specified block as well. | > > > > > > > > > > > > > | 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 | /** * \brief Accept an incoming connection. * * \return An autoreleased OFTCPSocket for the accepted connection. */ - (OFTCPSocket*)accept; /** * \brief Asyncronously ccept an incoming connection. * * \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). */ - (void)asyncAcceptWithTarget: (id)target selector: (SEL)selector; #ifdef OF_HAVE_BLOCKS /** * \brief Asyncronously ccept an incoming connection. * * \param block The block to execute when a new connection has been accepted. * Returns whether the next incoming connection should be accepted * by the specified block as well. |
︙ | ︙ |