+1-617-874-1011 (US)
+61-7-5641-0117 (AU)
+44-117-230-1145 (UK)
Live Chat

Write the programs using C++

Write the following programs using C++


MServer - Multicast-Chat Server. MClient- Multicast-Chat Client.






  • Creates a TCP server socket Sand binds it to sport =10992,
  • Creates a UDP socket Uand binds it to sport.
  • Generates a random multicast IP address I & port P in the range (10000 to 11000).
  • Accepts connections on S from MClients.For each client connection it:

Displays its <hostname, Port> & sends it I and P

Sends <hostname, Port> out of U to the multicast group (I,P). Close the connection.


  • Creates a TCP socket S and connects it to the MServer and reads the values of I and P.

The client contacts to any server running at one of the something hosts and listening at sport. Let Ps be the port number of S.

  • Creates a UDP socket Ur to receive the chat messages sent to the mcast group (I,P).
  • Creates a UDP socket Us and binds it to Ps to send chat messages to the mcast group (I,P).
  • Reads any message typed by the user and sends it to the mcast group (I,P) out of Us.
  • Receive any message from Ur and display it proceeded by the sender’s <hostname, Port>.
  • Exits when the user types CTRL-D.
Improve Your Grades with Custom Writing Help
Homework Help
Writing Help
Editing Services
Plagiarism check
Proofreading services
Research Project help
Custom writing services
E learning blogs

Disclaimer : The study tools and academic assistance/guidance through online tutoring sessions provided by AssignmentHelp.Net is to help and enable students to compete academically. The website does not provide ghostwriting services and has ZERO TOLERANCE towards misuse of the services. In case any user is found misusing our services, the user's account will be immediately terminated.