Beruflich Dokumente
Kultur Dokumente
(c) What changes are required in the following code to make it work for a TCP server.
Q.4. Consider the following sequence of messages in stop and wait client. Here client is sending a
request to server, though client TCP has received FIN from server. Using non-blocking I/O model,
implement the client to avoid this situation. [10]
Q.5. Computer science department has several research groups. It is decided that each group will keep
in touch using a IP-multicast chat application. A faculty member can be part of more than one
research group. Department is situated in 172.50.67/24 LAN segment. Since IP addresses are
allocated using DHCP protocol, it is not possible to fix the IP of a server which supplies list of
multicast group IPs and ports. list of multicast group IPs and ports will be available on some
system at port 8081.
Consider the following diagram. All nodes are connected over a LAN. Multicast groups are
maintained by some system that runs LiPro server. Assume that the following are the groups:
Every time a faculty opens a chat application (Node.c), it sends a broadcast request to 8081 port
number. If the LiPro server is up in the LAN, it will reply with the list of groups, ips and port
numbers. Nodes upon receiving the list, display it to the faculty. Faculty selects the groups, he
wants to join. Nodes join the selected groups. When it receives messages on any of these groups,
it displays to the user. When user enters text and group name, it is sent to the respective multicast
group.
Implement LiPro.c and Node.c for the above specifications. [12]