Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I need just Client code. thanks For Programming Project 1 you will be creating a simple client to work with the simple server that we
I need just Client code. thanks
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 dient 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. le /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 responseStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started