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 = {, 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.

This note was uploaded on 05/18/2010 for the course INFORMATIO IEG 4180 taught by Professor Jacky.b.lee during the Spring '09 term at CUHK.

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