Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: The REBOL async:// tutorial - take 1

From: tbrownell:veleng at: 4-Mar-2004 1:36

Excellent.. finally some light in this dark hole of tcp. I have a couple of questions though.. in the handler we have connect, read, write close.. how can i do this... connect [] read [ (read the buffer, which in this case is "2 + 2", and having processed this to a result string of "4"...)] write [... send the result back?] close [] And my second question.. what does it take to handle multiple clients, and have the server continue to serve, rather than shutting down when the client disconnects? Thanks Terry