Sun, 10 Jun 2007 16:01:26 +0000
Initial commit:
* Created tree structure
* Committed current version
0 | 1 | -- Listener Scenario |
2 | create socket, perform bind, set listening | |
3 | +add read-event listener | |
4 | +start loop | |
5 | ||
6 | -- Comm Scenario | |
7 | provided socket | |
8 | -inside loop | |
9 | begin coro | |
10 | read - data not ready | |
11 | yield sock, needRead | |
12 | end coro | |
13 | coro parent == callback | |
14 | (coro parent | |
15 | call coro(sock, event) | |
16 | if not ok, go back.. end | |
17 | if newEvent ~= event then | |
18 | unset event, reset newEvent | |
19 | end) |