repo.or.cz
/
luaevent.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Exposed event_buffer checks/get/push operations in prep for buffer_event
[luaevent.git]
/
doc
/
PLAN
blob
d3e8778f4741aee9f84bbec879833c6de052f065
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)