Free Java Peer To Peer Chat

The Peer To Peer Chat code/programs given here were written by Devin & George Smith, over a few days. There was NO attempt, except for good class and method names, to generate any documentation. The program currently comes in two flavors:

The code was written with a Strategy Pattern for the UI, so except for the startup/UI support code, all the code is common between the two versions. The code is heavily multi-threaded and should perform well regardless of any difference in bandwidth from one peer to the next. It uses Java's built-in Sockets.

Fundamentally, the UI (and hence the P2PChat programs) support 4 functions:

For the Console version these functions are available as: For the AWT version these functions are available as: Download options (as .zip): Individual Source Files:
This LiteSoft page sponsored by Smith's Net Services.