Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 May 1999 14:24:52 -0400 (EDT)
From:      Chuck Youse <cyouse@cybersites.com>
To:        Zhihui Zhang <zzhang@cs.binghamton.edu>
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: Sockets and SYSTEM V message queue
Message-ID:  <Pine.BSF.4.05.9905101423140.58619-100000@ns1.cybersites.com>
In-Reply-To: <Pine.GSO.3.96.990510134940.29300A-100000@sol.cs.binghamton.edu>

next in thread | previous in thread | raw e-mail | index | archive | help

That's why you can create sockets in the UNIX domain (AF_UNIX, later
renamed AF_LOCAL).  When you bind a UNIX domain socket, it's bound to a
name in the filesystem.

Chuck Youse 
Director of Systems
cyouse@cybersites.com


On Mon, 10 May 1999, Zhihui Zhang wrote:

> 
> 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
> 



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.BSF.4.05.9905101423140.58619-100000>