CS476/576

Assignment #3

Due Midnight, Wednesday   Nov 18, 2009


Write a C/UNIX/TCP-Socket program with the following descriptions:

NAME

scg -  creates a complete graph of tcp-socket-connected processes.

 

 

SYNOPSIS

 

        scg   [n]

 

 

DESCRIPTION

The program creates a complete graph of n processes each having its own xterm.  

The default value of n is 4.

Each process:

1.    is connected to every other process via a tcp connection.

2.    reads lines from stdin , writes it to all other processes using the tcp connections.

3.    displays the received lines to the stdout.

4.    upon typing CTRL-D  at any xterm, all n processes terminates.


 My implementation is under:

/home/cs476/public_html/fall09/assignments/a3/wahab/scg