Women in Technology

Hear us Roar



Article:
  How Java Web Servers Work
Subject:   Nice article
Date:   2003-04-24 08:27:43
From:   anonymous2
Good introduction to reading from streams, I've never used the byte[] buffer before. Also, good to see how the accept() is nested in a while() loop, so the server can handle more than a single request! I wish more examples like this were built in to the javadoc for ServerSocket et al.


Question: If one wanted to make this server multi-threaded, how difficult would that be? A little more easy-to-understand sample code?