dcsimg
 

The one-class server

by Greg Travis

This article presents a tidy way to quickly implement a simple TCP/IP server. The core of the code exists in a single class, Server.java, so it's easy to set up and use.

This article presents a tidy way to quickly implement a simple TCP/IP server. The core of the code exists in a single class, Server.java, so it's easy to set up and use.

The structure of Server.java is simple. It listens on a

This article was originally published on Thursday Aug 6th 1998
Home
Mobile Site | Full Site