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.
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
|