From ca61614b981fff436b50caabc2e61d4d962348b7 Mon Sep 17 00:00:00 2001 From: Thomas Harning Jr Date: Sun, 10 Jun 2007 16:01:26 +0000 Subject: Initial commit: * Created tree structure * Committed current version --- luaevent/doc/PLAN | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 luaevent/doc/PLAN (limited to 'luaevent/doc/PLAN') diff --git a/luaevent/doc/PLAN b/luaevent/doc/PLAN new file mode 100644 index 0000000..d3e8778 --- /dev/null +++ b/luaevent/doc/PLAN @@ -0,0 +1,19 @@ +-- Listener Scenario +create socket, perform bind, set listening ++add read-event listener ++start loop + +-- Comm Scenario +provided socket +-inside loop +begin coro + read - data not ready + yield sock, needRead +end coro +coro parent == callback +(coro parent + call coro(sock, event) + if not ok, go back.. end + if newEvent ~= event then + unset event, reset newEvent + end) \ No newline at end of file -- cgit v1.2.3