Differences From Artifact [facc710023]:
- File
src/OFTCPSocket.h
— part of check-in
[6343e04dcd]
at
2012-10-17 20:16:10
on branch trunk
— Pass exceptions on async I/O.
This makes it possible to handle exceptions that occurred during async
I/O in the specified handler. (user: js, size: 6408) [annotate] [blame] [check-ins using]
To Artifact [3d65177451]:
- File src/OFTCPSocket.h — part of check-in [7a3977d7fd] at 2012-10-29 08:00:11 on branch 0.7 — Documentation improvements. (user: js, size: 6410) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
169 170 171 172 173 174 175 | */ - (uint16_t)bindToHost: (OFString*)host port: (uint16_t)port; /** * \brief Listen on the socket. * | | | | | 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 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 | */ - (uint16_t)bindToHost: (OFString*)host port: (uint16_t)port; /** * \brief Listen on the socket. * * \param backLog Maximum length for the queue of pending connections. */ - (void)listenWithBackLog: (int)backLog; /** * \brief Listen on the socket. */ - (void)listen; /** * \brief Accept an incoming connection. * * \return An autoreleased OFTCPSocket for the accepted connection. */ - (OFTCPSocket*)accept; /** * \brief Asyncronously accept 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, * OFException *exception). */ - (void)asyncAcceptWithTarget: (id)target selector: (SEL)selector; #ifdef OF_HAVE_BLOCKS /** * \brief Asyncronously accept 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. */ - (void)asyncAcceptWithBlock: (of_tcpsocket_async_accept_block_t)block; #endif |
︙ | ︙ |