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

  Networking and types of networking

This assignment explains the networking features, different kinds of networks and also how they are arranged.

  National and Global economic environment and ICICI Bank

While working in an economy, it has a separate identity but cannot operate insolently.

  Ssh or openssh server services

Write about SSH or OpenSSH server services discussion questions

  Network simulation

Network simulation on Hierarchical Network Rerouting against wormhole attacks

  Small internet works

Prepare a network simulation

  Solidify the concepts of client/server computing

One-way to solidify the concepts of client/server computing and interprocess communication is to develop the requirements for a computer game which plays "Rock, Paper, Scissors" using these techniques.

  Identify the various costs associated with the deployment

Identify the various costs associated with the deployment, operation and maintenance of a mobile-access system. Identify the benefits to the various categories of user, arising from the addition of a mobile-access facility.

  Describe how the modern view of customer service

Describe how the greater reach of telecommunication networks today affects the security of resources which an organisation provides for its employees and customers.

  Technology in improving the relationship building process

Discuss the role of Technology in improving the relationship building process Do you think that the setting of a PR department may be helpful for the ISP provider? Why?

  Remote access networks and vpns

safekeeping posture of enterprise (venture) wired and wireless LANs (WLANs), steps listed in OWASP, Securing User Services, IPV4 ip address, IPV6 address format, V4 address, VPN, Deploying Voice over IP, Remote Management of Applications and Ser..

  Dns

problems of IPV, DNS server software, TCP SYN attack, Ping of Death, Land attack, Teardrop attack, Smurf attack, Fraggle attack

  Outline the difference between an intranet and an extranet

Outline the difference between an intranet and an extranet A programmer is trying to produce an applet with the display shown in Figure 1 below such that whenever one of the checkboxes is selected the label changes to indicate correctly what has..

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