CS779/879

Assignment #1

Due Midnight, Wednesday February 15, 2012


Write the following program in any language:

NAME

MTC  - Multicast TCP Chat

SYNOPSIS

MTC    <multicast-address>   <port-number> 

 

DESCRIPTION

 

The program creates:

ü  A UDP socket U:

 The socket joins the multicast group G defined by the two arguments:

                        <multicast-address>   <port-number>

e.g.,      224.0.0.1                         10123

 

ü  A server TCP socket T:

The socket is binded to <port-number> 

It accepts TCP clients at sockets C1, C2, ....

 

ü Any message received from any TCP client C1, C2, .... is sent as a multicast message out of  U.

ü Any multicast message (and not a unicast) received at U is sent to all currently connected clients C1, C2, ...

 

·       You may test the my implementation at:

http://www.cs.odu.edu/~cs779/spring11/assignments/a1/wahab/
Enter the following command on some of the fast machines,

e.g., vega, antares, capella and procyon.

% MTC  224.0.0.1 10123

 

·       To test MTC you may use:

http://www.cs.odu.edu/~cs476/SocketProgramming/c/TCPClient1.c (or you may use telnet)

http://www.cs.odu.edu/~cs476/SocketProgramming/c/UDPClient1.c

http://www.cs.odu.edu/~cs779/mcastChat/mcastChat.c