Please answer briefly the following questions. Briefly means one paragraph at most. Usualy one or two sentences are enough.
Chapter 3 (pages 43-80): 8, 9
Chapter 4 (pages 81-113): 12, 28bd
Chapter 5 (pages 115-130): 6abcd
Write a time synchronization client that utilizes UDP-based conection to a time server on port 37 and prints on the screen the number of seconds since 1/1/1900. Use time-b.nist.gov or any other server from nist.gov list as a time server.
In order to receive a four byte time stamp bind the client to local port 37 (typically we bind only servers), send a one-byte-long UDP packet to the port 37 of the time server, then listen for a packet received at the same port that you used to send your request, send one more one-byte- pacekt, and recevie the second packet from the server. Study RFC "STD26" to determine the order of bytes. Note that it might not map directly to a _int32 (long) and assembling it byte by byte might be required. Do the time polling two times and use the second response.
Starting with this assignment you may use our "corporate" TCP/IP library that has been introduced in class. Do not modify the library, use it "as is", and report any problems and/or desired additional functionality to the instructor.
In case of theoretical questions please attach your homework page as an ASCII text (*.txt) or Reach text *.rtf or MS Word 2007 *.docx document. Legacy MS Word files *.doc will not be opened. In case of programs attach all source code in files with proper names and extensions (*.c, *.cpp, *.h). Do not send compiled programs (*.exe) as email with such contents is automatically deleted. Send your homework via e-mail to the instructor at olekmali at bradley.edu. Please set the message subject to: tnp-hw2.
Thank you.