From 4c2a04eded5c66c6696d4b53aee339f0f3ab8155 Mon Sep 17 00:00:00 2001 From: Thomas Harning Jr Date: Fri, 31 Aug 2007 09:34:09 -0400 Subject: Reformed project layout from 'luaevent/*' -> '*' --- doc/PLAN | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 doc/PLAN (limited to 'doc/PLAN') diff --git a/doc/PLAN b/doc/PLAN new file mode 100644 index 0000000..d3e8778 --- /dev/null +++ b/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