doc/PLAN

Tue, 05 Jul 2011 22:23:15 -0400

author
Thomas Harning Jr <harningt@gmail.com>
date
Tue, 05 Jul 2011 22:23:15 -0400
changeset 105
9fb82ef210a3
parent 13
3e2ea1e7b2e8
permissions
-rw-r--r--

base: adds distribution archive generation functionality to Makefile

-- 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)

mercurial