Nbspmake a client server program with following


Part I …………..Function calls

Write down the complete syntax and purpose of following calls.

  • Socket()
  • Connect()
  • Listen()
  • Bind()
  • Send()
  • Recv()

Part II Programming

Q No 1: Make a Client Server program with following requirements……

The server will create a TCP (sockstream) socket.

The server will listen on the port 9999.

When client connected to the server, the client will get its current time and send to the server.

The server will, upon reception of client’s time, simply echo that message.

The server will also get its own time and display a line on its consol in the following format:

o Client_IP Client_port current_time client’s_sent_time

After that the server will close the connection and start listening for another connection.

When the client will receive the echo reply from server, it again gets its current time, takes the difference (RTT) and display on its consol in the following format:

o current_time client’s_sent_time

After that the client will close its connection and exits normally.

NOTE: Make sure that your application will follow the required instructions. Your application should also be able to run with ANY other application having the SAME specifications. Make your application to support the asked specifications ONLY. Also provide a README file if you made any assumptions. Please make sure to enable your application to support the APPROPRIATE BYTE ORDERING whenever necessary. 

Solution Preview :

Prepared by a verified Expert
Computer Networking: Nbspmake a client server program with following
Reference No:- TGS01128889

Now Priced at $80 (50% Discount)

Recommended (97%)

Rated (4.9/5)