Make a client server program

Assignment Help Computer Networking
Reference no: EM13848702

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. 

Reference no: EM13848702

Questions Cloud

Calculate the rotational constant b : Calculate the rotational constant B for H2(g)and D2(g)in unite of frequency. Rationalize the trend in rotational constant for these two molecule ,given the differ only in atomic mass.
Inventories are valued at lower-of-cost-or-market using lifo : Inventories are valued at lower-of-cost-or-market using LIFO
How does the irradiation of nuclei in ft-nmr instruments : How does the irradiation of nuclei in FT-NMR instruments differ from irradiation in other types of NMR instruments? What are the advantages of FT-NMR over the other NMR techniques
Write a matlab program : Write a Matlab program to: 1)Using the classical Monte-Carlo method, estimate the value of the following integral: I = ∫01 x(1-x)3 dx Also, estimate the variance, V (I), of this estimator. Plot both the estimates as functions
Make a client server program : 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.
A sand casting process with a starting : 1) A Batch of 40 good workpieces is to be produced using a sand casting process with a starting material thatcosts $40 a piece. The time it takes to fill the mold is 10 seconds, while the solidification time is 1minute. The casting is removed from th..
Exploring endocrine-circulatory and respiratory systems : Instructions: Your lab report from Part 1along with the Part 2 activity will serve as a guide to answer the questions andto completethe tables for the endocrine, cardiovascular (circulatory), and respiratory systems.
Provide a counterexample to show : Let S be a subset of R.  Provide a counterexample to show that the following statement is false:
Use photoshop to create an animated gif : Use photoshop to create an animated gif about a Football team. My favorite team is Manchester United so make the animated gif about them

Reviews

Write a Review

Computer Networking Questions & Answers

  Explain llc and mac

Explain two layers: LLC & MAC, and how are they different from what is available in TCP/IP protocol? Why do we require these two extra layers for LAN?

  Describe the predominant electronic and physical threats to

write a 200- to 300-word response to the following questionsq1. what are the predominant electronic and physical

  Lan security in a network environmentnetwork security is

lan security in a network environmentnetwork security is becoming more and more important in business not only

  Advantages and disadvantages of remote access solution

Describe whether or not your network design will support dial-up or VPN remote access by using descriptions of following aspects: advantages and disadvantages of remote access solution.

  What types of devices are available today to secure a

write a 2-4 page paper on network security your paper should include the following topicsmiddot how a secure

  Acknowledge technoogy-s polypotency

Richard Sclove argues that we must do more to acknowledge technoogy's 'polypotency.' What does this term mean, why does Sclove think that it is significant to acknowledge this characteristic of technology?

  Generally the receiver in the tcp flow control scheme sends

normally the receiver in the tcp flow control scheme sends back ack packets with the sequence number that it is

  Describe components, devices involved in each topology

Outline the three general network topologies (bus, ring, and star). Describe the components, devices, and arrangement of components and devices involved in each topology, as well as some of the pros and cons of each configuration.

  Receiver decide which symbol was originally sent

How can a receiver decide which symbol was originally sent when a received "point" lies somewhere in between other points in the diagram?

  Data communications and net-centric computing homeworklan

data communications and net-centric computing homeworklan sectionq1. list a below contains the layers of the internet

  Explain detailed response to the network design request

The Technical Term Paper will include the detailed response to the network design request. The document will be submitted in MS Word and will be between 10-15 pages with graphics embedded within the document.

  Which access method is used by ethernet

Calculate the minimum length of time it would take to download a 20MByte document from a workstation to a server across each of the following networks.  This means you will have to convert bytes to bits.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd