CS475 Programming Project 1 solution

$24.99

Original Work ?

Download Details:

  • Name: Project1.zip
  • Type: zip
  • Size: 175.44 KB

Category: You will Instantly receive a download link upon Payment||Click Original Work Button for Custom work

Description

5/5 - (3 votes)

For Programming Project 1 you will be creating a simple client to work with the simple server that we
went over in class. Your simple client should use the function gethostbyname to retrieve the IP address
of the server from name services (DNS). You might start by hard coding in an IP, but your final program
must use gethostbyname to resolve the IP address.
Your client application will run at the command line and should take single command line argument
which will be the port number being used on the server.
Ie ./runclient 65010 should start the program runclient and pass the port number 65010 which will be
used inside of your program.
Your program should then send a message to the server and receive and print the response. Remember
the server just echo’s back whatever it receives so you will know if you received the correct response.
For this project you will not need to and should not make changes to the simple sever code that was
given in class.