aboutsummaryrefslogtreecommitdiffstats
path: root/doc/PLAN
diff options
context:
space:
mode:
authorThomas Harning Jr <harningt@gmail.com>2007-08-31 09:34:09 -0400
committerThomas Harning Jr <harningt@gmail.com>2007-08-31 09:34:09 -0400
commit4c2a04eded5c66c6696d4b53aee339f0f3ab8155 (patch)
treee5ad5a8ea9377f7b1c18732f094c11bcb610ae81 /doc/PLAN
parentae3262e075eadefbae445e64576f6a10f0d3e236 (diff)
downloadluaevent-prosody-4c2a04eded5c66c6696d4b53aee339f0f3ab8155.tar.gz
luaevent-prosody-4c2a04eded5c66c6696d4b53aee339f0f3ab8155.zip
Reformed project layout from 'luaevent/*' -> '*'
Diffstat (limited to 'doc/PLAN')
-rw-r--r--doc/PLAN19
1 files changed, 19 insertions, 0 deletions
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