Date: Mon, 10 May 1999 13:57:46 -0400 (EDT) From: Zhihui Zhang <zzhang@cs.binghamton.edu> To: freebsd-hackers@freebsd.org Subject: Sockets and SYSTEM V message queue Message-ID: <Pine.GSO.3.96.990510134940.29300A-100000@sol.cs.binghamton.edu>
next in thread | raw e-mail | index | archive | help
My impression is that whenever you create a socket, you bind to some IP address. If you creates two sockets on the same machine, these two sockets will bind to the same IP address (assuming that the machine has only one NIC). When these two sockets communicate with each other, the OS should be smart enough to figure out that they associated with the same IP address and therefore do not actually send packets out to the network. If this is the case, why do we bind a socket to an IP address. I mean, the sockets should be able to be used alone. If they have to be bound to an IP address to be used, why do not we use message queue of SYS V? If so, which mechanism is better - message queue or standalone socket? I hope some guru will enlightment me on this subject. Any help is appreciated. -------------------------------------------------- Zhihui Zhang. Please visit http://www.freebsd.org -------------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.3.96.990510134940.29300A-100000>