Question: (a) Sockets data structure are created and terminated during the execution of a message passing program. Briefly explain how a socket is terminated. [4
(a) Sockets data structure are created and terminated during the execution of a message passing program. Briefly explain how a socket is terminated. [4 marks] (b) A client-server model is generally used to describe communication between two computers in a network. Draw the diagram that shows operation of the client- server model using socket. [8 marks] (c) A Remote Procedure Call (RPC) is a program that is used to call procedures in another system. Illustrate how the command is used to execute RPC at system level. Give an example. [8 marks]
Step by Step Solution
3.54 Rating (158 Votes )
There are 3 Steps involved in it
a To terminate a socket you need to close the file descriptor for the socket This can be done using the close function in most programming languages For example in C you would call closesocketfd to cl... View full answer
Get step-by-step solutions from verified subject matter experts
