Chat
see other Java utilities at:
Yagga's Java pages!

This is a simple socket based chat program. It is composed of a server and a client, both console version and a graphical one.

Download arkive (16K)
[Zip ]

13384

JDK:
1.0.2 and above
version:
1.0
date: November 1997
author:
Walter Gamba
e-commerce:
e-mail ware
inside Yagga framework: YES

It is composed of a server and a client, both console based and graphical.

The program comes with full source code.

The program can be played on a LAN or over the Internet (provided packet can pass firewall and/or proxies). You could try tunneling on port 80....

The game can allow any number of chatters. (actually the maximum is 20, just recompile the ChatDaemon class).

the ZIP contains:

  • chat.txt (this file)
  • src/ the dir with source code
  • bin/ the dir with the classes

The Server

start the server on the server machine:

>java ChatDaemon

note

the port is by default 1666

this will put up a server listening on the specified port of the server machine.

The Client

on each client machine start a client:

on each client machine start a client:

>java ChatClient [inetadx] //console version

>java ChatApplet [inetadx] //AWT version

where

inetadx#: TCP/IP server adx, default localhost

note

the port#: is by default 1666

Once the client is up, first string you input will be your nick name. From now on any string inputted will be a message that will be broadcasted to others. To finish inputting a string simply push Enter.

You will see your messages (preceded by ">") and others' messages (preceded by "<").


If you run it under JDK1.0.2 and you get strange errors, please recompile it with your JDK, since I've last recompiled it with JDK1.2. But I have not touched the code, so it should still work under JDK1.0.2.

Hail ErIs and good luck!


Yagga's Java pages are copyright(C) 1999
Walter Gamba

Yagga server and PbML are copyright (C) 1999
of Marco Becchio and Walter Gamba