From: Massimiliano Mirra Date: 2001-11-08T00:17:47+09:00 Subject: [ruby-talk:24526] Re: TCPServer example in PP book On Wed, Nov 07, 2001 at 10:43:01PM +0900, GOTO Kentaro wrote: > session.gets("\r\n\r\n") # read request That's right. The example said ``puts session.gets...'' and since it gave an error I deleted the whole line instead of just puts, as I should have done. Anyway, I am reimplementing it as a single threaded bare-bones daemon, taking inspiration from (translation: shamelessly plagiarizing) httpd.rb by Michel van de Ven, found on RAA. It includes just what it is absolutely necessary to have something up & running and, because of this, it might be useful as a starting point or a didactic piece for newbies (like I am) and first-timers in server programming. If anyone is interested, let me know. Massimiliano