midterm_2008_Spring_questions

midterm_2008_Spring_questions - IEG4180 NETWORK SOFTWARE...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
IEG4180 Network Software Design and Programming Page 1 IEG4180 N ETWORK S OFTWARE D ESIGN AND P ROGRAMMING DEPARTMENT OF INFORMATION ENGINEERING THE CHINESE UNIVERSITY OF HONG KONG MID-TERM EXAMINATION 2007/2008 TERM 2, TIME ALLOWED: 1 HOUR 30 MINS (A NSWER ALL QUESTIONS . TOTAL 100 MARKS . N OTE : K EEP YOUR ANSWERS CONCISE AND TO THE POINT . M ARKS WILL BE DEDUCTED FOR IRRELEVANT ANSWERS .) 1. Fundamentals of Sockets Programming (30 marks) The following figure illustrates the relation between various system components: Network Application Software I/O Device (e.g., Disk, Network) Operating System Application Programming Interface File f1 : {name=“readme.txt”, opened for read, binary I/O, offset = 1,024 bytes, …} File f2 : {name=“memo.doc”, opened for read/write, binary I/O, offset = 1,024 bytes, …} Socket s1 : {stream/TCP, connected, addr = {137.189.99.200, 5678} peer = “…”, buffer size = “…”, receive buffer = “…”, send buffer = ‘…”, …}
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 2

midterm_2008_Spring_questions - IEG4180 NETWORK SOFTWARE...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online