Monday, November 08, 2010 at 12:01 AM.
system.verbs.apps.netEvents.examples.testListen
local (stream, s); netEvents.launch (); stream = netEvents.listenStream (80); s = netEvents.readStream (stream, 10000); wp.newtextobject (s, @scratchpad.request); netEvents.writeStream (stream, "HTTP/1.0 200 OK\r\n\r\n" + "OH THE BUZZING"); netEvents.closeStream (stream)
This listing is for code that runs in the OPML Editor environment. I created these listings because I wanted the search engines to index it, so that when I want to look up something in my codebase I don't have to use the much slower search functionality in my object database. Dave Winer.