Professional Documents
Culture Documents
Bit4205 Network Programming Virt Supp
Bit4205 Network Programming Virt Supp
QUESTION ONE
6. What are the different options and type values available for creating a socket?
(3 Marks)
7. What is the purpose of connect and bind function. (3 Marks)
10. What are the functions to pass socket address structure from kernel to the
process? (3 Marks)
QUESTION TWO
1. Discuss on the set of states a process undergoes during its lifetime. (4 Marks)
2. Why does a parent await the termination of a child? What happens during this
wait? (4 Marks)
3. What are the four functions to pass socket address structure from kernel to the
process? (4 Marks)
QUESTION THREE
2. Explain the sequence of functions for elementary TCP client server model.
(4 Marks)
3. Explain about the TCP echo server and the TCP Echo client and the various
functions associated with it (4 Marks)
4. Explain about the raw socket creation and the rules regarding raw socket inupt
and output. (4 Marks)
QUESTION FOUR
3. How will you create and remove message queues? Explain with an example the
interprocess communication using message queues. (4 Marks)
4. Give the format of the structure assigned for the shred memory segment. Explain
the functions required to access the shred memory. (4 Marks)
QUESTION FIVE
4. What ICMP messages are used by trace route tool? What is the use of
REUSEADDR socket option? (4 Marks)