A server creates a port which it uses to receive requests from clients. Discuss the design issues
concerning the relationship between the name of this port and the names used by clients.
What will be an ideal response?
The main design issues for locating server ports are:
(i) How does a client know what port and IP address to use to reach a service?
The options are:
• use a name server/binder to map the textual name of each service to its port;
• each service uses well-known location-independent port id, which avoids a lookup at a name server.
The operating system still has to look up the whereabouts of the server, but the answer may be cached locally.
(ii) How can different servers offer the service at different times?
Location-independent port identifiers allow the service to have the same port at different locations. If a binder
is used, the client needs to reconsult the client to find the new location.
(iii) Efficiency of access to ports and local identifiers.
Sometimes operating systems allow processes to use efficient local names to refer to ports. This becomes an
issue when a server creates a non-public port for a particular client to send messages to, because the local name
is meaningless to the client and must be translated to a global identifier for use by the client.
You might also like to view...
What is wrong with this code?
```class Jeans { private: int size; string brand; public: Jeans() {size = 10; brand = “Levis”;} void SetSize(int s) {size = s;} void SetBrand(string b){brand = b;} }; int main() { Jeans jeans; jeans.size = 8; return 0; }``` A. Nothing is wrong with this code. B. Can’t have two statements in Jeans( ). C. Size is a private variable of Jeans, can’t be accessed by jeans. D. Assignment in main should be Jeans.size = 8;
Write a recursive method that will reverse the order of the characters in a given string and return the result as a new string. For example, if "book" is the argument, the result would be "koob".
What will be an ideal response?
What is the significance of the following CSS rule?
``` LI, EM { color: red;c font-weight: bold } ``` a) It will apply the specified style to text enclosed by either LI or EM tags. b) It will apply the specified style to text enclosed by the EM tags which are within LI tags. c) It will apply the specified style to text enclosed by the LI tags which are within EM tags. d) It will apply the specified style to text not enclosed by either LI or EM tags.
You can personalize many aspects of your ________
Fill in the blank(s) with correct word