Differences From Artifact [2a9dc1d700]:
- File src/OFTCPSocket.m — part of check-in [be7d619b6e] at 2012-09-17 06:58:33 on branch trunk — Pass the timer as argument in timer blocks. (user: js, size: 12915) [annotate] [blame] [check-ins using]
To Artifact [b7640aefbf]:
- File
src/OFTCPSocket.m
— 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: 13089) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
510 511 512 513 514 515 516 517 518 519 520 521 522 523 | newSocket->sock = newSock; newSocket->sockAddr = addr; newSocket->sockAddrLen = addrLen; return newSocket; } #ifdef OF_HAVE_BLOCKS - (void)asyncAcceptWithBlock: (of_tcpsocket_async_accept_block_t)block { [OFRunLoop OF_addAsyncAcceptForTCPSocket: self block: block]; } | > > > > > > > > | 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 | newSocket->sock = newSock; newSocket->sockAddr = addr; newSocket->sockAddrLen = addrLen; return newSocket; } - (void)asyncAcceptWithTarget: (id)target selector: (SEL)selector { [OFRunLoop OF_addAsyncAcceptForTCPSocket: self target: target selector: selector]; } #ifdef OF_HAVE_BLOCKS - (void)asyncAcceptWithBlock: (of_tcpsocket_async_accept_block_t)block { [OFRunLoop OF_addAsyncAcceptForTCPSocket: self block: block]; } |
︙ | ︙ |