Implement the following two programs.CS476/576
Assignment #5
Due Midnight, Tuesday Nov 16, 1999
NAME
chatd -
a multi party chat server (or daeom).
chat -
a multi party chat client.
SYNOPSIS
chatd [port]
chat uname host port
DESCRIPTION
Examples:
....
% chatd 8000 &
.......
% chatd &
Port number is 7689
.....
% chatd 7689
binding name to stream socket:
Address already in use
.....
Chat connects
to chatd using the information provided on the command line arguments (host
and port). After chat is connected to chatd, it sends the user name
(uname) of its user to chatd. Any line typed by a user of chat is sent
to chatd where it is sent to all other participants. Every line is
prefixed with the sender's uname. Any line received by chat from
chatd is displayed to the user
in a separate
window. Any user can leave the conversation
at any time while
all other participants may
continue to chat.
Chatd never dies, even if the last participant leaves. You have to kill it with a fatal signal.
Examples:
......
% chat wahab dogwood 12345
.......
% chat wahab 128.82.4.67
12345
.....
NOTE:
The user interface to this program is up to each of you. The only
constraint is to seperate the typed messages by a participant from
the ecieved messages typed by other participants. (e.g., you may
use two xterms, one for typing and another for displaying the recieved
messages).