CS476/576

Assignment #6

Due Midnight,  Wednesday   Dec 4, 2002



Write the following two programs inJava.

NAME

adapter  - helps a tcp chatclient to communicate with a udp chatclient.
chatclient  -  a swing-based program that helps a person to chat with another person  using either a tcp or a udp socket.
SYNOPSIS
adapter [ <port>]
chatclient
DESCRIPTION
    This program  helps a tcp client to communicate with a udp client.
    The program  creates two server sockets A and B where A  is a tcp and B is a udp.
    Assume that sockets A and B are both  binded to the same port number.
    If no command line argument is  provided, that  port number is 1234.

    It is assumed that the program will have only two clients, one is a tcp chatclient and the other is a udp chatclient (the details of these two clients are described next).

    When the tcp chatclient is connected,  socket A is closed since there is no
    more tcp clients that are expected to connect to this server.
    The program  gets the ip/port  information of the udp chatclient from  the first udp message received from the udp chatclient.

    Basically the program create two threads:

The next figure shows a screen dump of the two clients.

     
To get a feeling and gain more details about the specification
of this program, execute my own solution under:
/home/cs476/public_html/fall02/assignments/a6/wahab