Reputation: 22946
Internet domain:
Produces an association composed of local and foreign addresses and local and foreign ports.UNIX domain:
Produces an association composed of local and foreign path names.NDD domain (Network Device Driver of the operating system):
Provides an association composed of local device name (operating system NDD name) and foreign addresses, the form of which depends on the protocol being used.
They talk about association composed of local and foreign addresses
.
What exactly does that mean.
I can understand the local address, but what's with the foreigh addresses, how does it find them, and which are they, and how does it create their association?
Upvotes: 0
Views: 81
Reputation: 36524
The local and foreign socket addresses are simply the address of your program (the local one) and the address of the other program you are communicating with (the foreign one).
Different programs use different mechanisms to determine that foreign address. For example:
Associations can also vary depending upon whether a protocol is connection-based or connectionless.
Upvotes: 2