CS476/576

Assignment #5

Due Midnight, Tuesday   Nov 20, 2001


Write a C/UNIX program with the following descriptions:

NAME

tcpline - A  program to reate a chain of processes connected with tcp sockets.
SYNOPSIS
tcpline [<Rhost>  <Nproc>]
DESCRIPTION
 
    The program creates Nproc processes (the default value of Nproc is 2) and each process is connected to its next process with a tcp socket as shown in the next  Figure. The odd numbered processes (number 1, 3, 5, ..etc)  runs on the localhost (i.e., where the tcpline command started) while the even numbered processes (number 2, 4, 6, ...etc) runs on the Remote host Rhost (the default value of Rhost is the localhost.)



 
 

 

Back to Assignments Page
Back to CS476/576 Home Page